Commit f5358bb1 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Failure

parent 11dfd0ef
......@@ -122,7 +122,7 @@ class Failure(ObjectInterruption):
remainingTimeToFailure=remainingTimeToFailure-(self.env.now-timeRestartedCounting)
# wait for the shift to start again
self.isWaitingForVictimOnShift=True
yield self.victim.interruptionEnd
yield self.victimOnShift
self.isWaitingForVictimOnShift=False
self.victimOnShift=self.env.event()
assert self.victim.onShift==True, 'the victim of shiftFailure must be onShift to continue counting the TTF'
......
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