Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
3ba3cebd
Commit
3ba3cebd
authored
Jan 29, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix station utilizations on multiple iterations with blockage
parent
599d087e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
16 deletions
+36
-16
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+36
-16
No files found.
dream/platform/static/src/dream.js
View file @
3ba3cebd
...
...
@@ -327,26 +327,46 @@
if
(
obj
.
results
!==
undefined
&&
obj
.
results
.
working_ratio
!==
undefined
)
{
/* when there is only one replication, the ratio is given as a float,
otherwise we have a mapping avg, min max */
var
blockage_ratio
=
0.0
;
if
(
obj
.
results
.
blockage_ratio
!==
undefined
)
{
blockage_data
.
push
([
counter
,
obj
.
results
.
blockage_ratio
.
avg
||
obj
.
results
.
blockage_ratio
]);
}
else
{
blockage_data
.
push
([
counter
,
0.0
]);
if
(
obj
.
results
.
blockage_ratio
.
avg
!==
undefined
)
{
blockage_ratio
=
obj
.
results
.
blockage_ratio
.
avg
;
}
else
{
blockage_ratio
=
obj
.
results
.
blockage_ratio
;
}
}
blockage_data
.
push
([
counter
,
blockage_ratio
]);
var
working_ratio
=
0.0
;
if
(
obj
.
results
.
working_ratio
!==
undefined
)
{
if
(
obj
.
results
.
working_ratio
.
avg
!==
undefined
)
{
working_ratio
=
obj
.
results
.
working_ratio
.
avg
;
}
else
{
working_ratio
=
obj
.
results
.
working_ratio
;
}
}
working_data
.
push
([
counter
,
working_ratio
]);
var
waiting_ratio
=
0.0
;
if
(
obj
.
results
.
waiting_ratio
!==
undefined
)
{
if
(
obj
.
results
.
waiting_ratio
.
avg
!==
undefined
)
{
waiting_ratio
=
obj
.
results
.
waiting_ratio
.
avg
;
}
else
{
waiting_ratio
=
obj
.
results
.
waiting_ratio
;
}
}
waiting_data
.
push
([
counter
,
obj
.
results
.
waiting_ratio
.
avg
||
obj
.
results
.
waiting_ratio
])
;
waiting_data
.
push
([
counter
,
waiting_ratio
]);
var
failure_ratio
=
0.0
;
if
(
obj
.
results
.
failure_ratio
!==
undefined
)
{
failure_data
.
push
([
counter
,
obj
.
results
.
failure_ratio
.
avg
||
obj
.
results
.
failure_ratio
]);
}
else
{
failure_data
.
push
([
counter
,
0.0
]);
if
(
obj
.
results
.
failure_ratio
.
avg
!==
undefined
)
{
failure_ratio
=
obj
.
results
.
failure_ratio
.
avg
;
}
else
{
failure_ratio
=
obj
.
results
.
failure_ratio
;
}
}
working_data
.
push
([
counter
,
obj
.
results
.
working_ratio
.
avg
||
obj
.
results
.
working_ratio
]);
failure_data
.
push
([
counter
,
failure_ratio
]);
ticks
.
push
([
counter
,
that
.
getData
().
nodes
[
obj
.
id
].
name
||
obj
.
id
]);
counter
++
;
...
...
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