Commit 44f488c8 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction of bug in operator

parent cf25d26d
......@@ -279,7 +279,7 @@ class Operator(ObjectResource):
if self.onShift:
self.totalBreakTime+=self.env.now-self.timeLastBreakStarted
# if object is off shift add only the break time before the shift ended
if not self.onShift and self.timeBreakStarted < self.timeLastShiftEnded:
if not self.onShift and self.timeLastBreakStarted < self.timeLastShiftEnded:
self.totalBreakTime+=self.timeLastShiftEnded-self.timeLastBreakStarted
# Operator was idle when he was not in any other state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment