Commit f5358bb1 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Failure

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