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
a74ba7f3
Commit
a74ba7f3
authored
Mar 13, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in Operator.postProcessing
parent
f1cc63fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dream/simulation/Operator.py
dream/simulation/Operator.py
+2
-2
No files found.
dream/simulation/Operator.py
View file @
a74ba7f3
...
...
@@ -265,11 +265,11 @@ class Operator(ObjectResource):
# if the Operator is currently working we have to count the time of this work
if
len
(
self
.
getResourceQueue
())
>
0
:
self
.
totalWorkingTime
+=
self
.
env
.
now
-
self
.
timeLastOperationStarted
self
.
totalWorkingTime
+=
G
.
maxSimTime
-
self
.
timeLastOperationStarted
# if the Operator is currently off-shift we have to count the time of this work
if
not
self
.
onShift
and
len
(
self
.
getResourceQueue
())
==
0
:
self
.
totalOffShiftTime
+=
self
.
env
.
now
-
self
.
timeLastShiftEnded
self
.
totalOffShiftTime
+=
G
.
maxSimTime
-
self
.
timeLastShiftEnded
# Operator was idle when he was not in any other state
self
.
totalWaitingTime
=
MaxSimtime
-
self
.
totalWorkingTime
-
self
.
totalOffShiftTime
...
...
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