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
d1181d2b
Commit
d1181d2b
authored
Feb 18, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output daily attainment
parent
de81ae4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+16
-1
dream/simulation/GUI/Batches.py
dream/simulation/GUI/Batches.py
+12
-0
No files found.
dream/platform/static/src/dream.js
View file @
d1181d2b
...
...
@@ -495,7 +495,22 @@
if
(
el
.
_class
==
'
Dream.Exit
'
){
var
text
=
exit_stat
.
html
()
+
"
<br/><b>
"
+
(
el
.
name
||
el
.
id
)
+
"
</b><br/>
"
;
$
.
each
(
el
.
results
,
function
(
metric
,
value
){
text
=
text
+
"
<em>
"
+
metric
+
"
</em>:
"
+
value
+
"
<br/>
"
;
if
(
metric
==
'
intervalThroughputList
'
)
{
var
general
=
that
.
getData
().
general
,
throughputTarget
=
parseFloat
(
general
.
throughputTarget
),
desiredPercentageOfSuccess
=
parseFloat
(
general
.
desiredPercentageOfSuccess
);
text
+=
"
<em>Daily Attainment</em>:
"
$
.
each
(
value
,
function
(
i
,
intervalValue
)
{
var
icon
=
"
fa-frown-o
"
;
if
((
intervalValue
/
throughputTarget
)
>
desiredPercentageOfSuccess
)
{
icon
=
"
fa-smile-o
"
}
text
+=
intervalValue
+
'
<i class="fa
'
+
icon
+
'
"/>
'
;
})
text
+=
"
<br/>
"
;
}
else
{
text
+=
"
<em>
"
+
metric
+
"
</em>:
"
+
value
+
"
<br/>
"
;
}
})
exit_stat
.
html
(
text
);
}
...
...
dream/simulation/GUI/Batches.py
View file @
d1181d2b
...
...
@@ -44,6 +44,18 @@ class Simulation(DefaultSimulation):
conf
[
"Dream-Configuration"
][
"gui"
][
"exit_stat"
]
=
1
conf
[
"Dream-Configuration"
][
"gui"
][
"debug_json"
]
=
1
conf
[
"Dream-Configuration"
][
"gui"
][
"shift_spreadsheet"
]
=
1
# some more global properties
conf
[
"Dream-Configuration"
][
"property_list"
].
append
(
{
"id"
:
"throughputTarget"
,
"type"
:
"string"
,
"_class"
:
"Dream.Property"
,
"_default"
:
"10"
})
conf
[
"Dream-Configuration"
][
"property_list"
].
append
(
{
"id"
:
"desiredPercentageOfSuccess"
,
"type"
:
"string"
,
"_class"
:
"Dream.Property"
,
"_default"
:
"0.85"
})
# remove tools that does not make sense here
conf
.
pop
(
'Dream-Machine'
)
conf
.
pop
(
'Dream-Repairman'
)
...
...
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