Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
ef26613e
Commit
ef26613e
authored
Oct 11, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: status
parent
8cc58a5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.js
...mplateItem/web_page_module/rjs_gadget_slapos_status_js.js
+8
-5
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.xml
...plateItem/web_page_module/rjs_gadget_slapos_status_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.js
View file @
ef26613e
...
...
@@ -13,7 +13,8 @@
if
(
compute_node_news_dict
.
no_data
)
{
return
STATUS_NODATA
;
}
if
(
compute_node_news_dict
.
text
.
startsWith
(
"
#access
"
))
{
if
(
compute_node_news_dict
.
text
&&
compute_node_news_dict
.
text
.
startsWith
(
"
#access
"
))
{
if
(
compute_node_news_dict
.
no_data_since_15_minutes
)
{
return
STATUS_ERROR
;
}
...
...
@@ -125,8 +126,10 @@
.
push
(
function
(
result
)
{
console
.
log
(
'
STATUS.onLoop2
'
,
result
);
return
gadget
.
changeState
({
compute_node_news_dict
:
JSON
.
stringify
(
result
.
news
.
compute_node
),
partition_news_dict_dict
:
JSON
.
stringify
(
result
.
news
.
partition
)
compute_node_news_dict
:
JSON
.
stringify
(
result
.
news
.
compute_node
||
{}),
partition_news_dict_dict
:
JSON
.
stringify
(
result
.
news
.
partition
||
{})
});
});
}
...
...
@@ -135,9 +138,9 @@
.
declareMethod
(
"
render
"
,
function
(
options
)
{
console
.
log
(
'
STATUS.render
'
,
options
);
return
this
.
changeState
({
compute_node_news_dict
:
JSON
.
stringify
(
options
.
compute_node
),
compute_node_news_dict
:
JSON
.
stringify
(
options
.
compute_node
||
{}
),
partition_news_dict_dict
:
JSON
.
stringify
(
options
.
partition
options
.
partition
||
{}
),
jio_key
:
options
.
value
,
reference
:
options
.
reference
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.xml
View file @
ef26613e
...
...
@@ -273,7 +273,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.25
892.59451.19899
</string>
</value>
<value>
<string>
995.25
914.47446.21742
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -291,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>
163395
6802.87
</float>
<float>
163395
8158.48
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment