actorlib/sim/SimActor: remove dead time between transactions
This commit is contained in:
parent
6aff41a883
commit
cbc387f69e
|
@ -57,13 +57,13 @@ class SimActor(PureSimulable, Actor):
|
|||
or isinstance(transactions, set):
|
||||
self.active = set(transactions)
|
||||
elif transactions is None:
|
||||
self.active = []
|
||||
self.active = set()
|
||||
else:
|
||||
raise TypeError
|
||||
|
||||
def do_simulation(self, s):
|
||||
if not self.done:
|
||||
if not self.active:
|
||||
self._next_transactions()
|
||||
if self.active:
|
||||
self._process_transactions(s)
|
||||
else:
|
||||
self._next_transactions()
|
||||
|
|
Loading…
Reference in New Issue