Commit 8b3643cf authored by Georgios Dagkakis's avatar Georgios Dagkakis

do not allow breaks of 0 time

parent 3a0823d6
...@@ -128,7 +128,7 @@ class ShiftScheduler(ObjectInterruption): ...@@ -128,7 +128,7 @@ class ShiftScheduler(ObjectInterruption):
# sometimes the time to end the last process may overcome the time to restart theshift # sometimes the time to end the last process may overcome the time to restart theshift
# so off-shift should not happen at such a case # so off-shift should not happen at such a case
if len(self.remainingShiftPattern)>1: if len(self.remainingShiftPattern)>1:
if self.env.now>self.remainingShiftPattern[1][0]: if self.env.now>=self.remainingShiftPattern[1][0]:
self.remainingShiftPattern.pop(0) self.remainingShiftPattern.pop(0)
# if there is no more shift data break the loop # if there is no more shift data break the loop
if len(self.remainingShiftPattern)==0: if len(self.remainingShiftPattern)==0:
......
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