|
@@ -382,7 +382,7 @@ class Network(AtomicDEVS):
|
|
|
def intTransition(self):
|
|
|
self.state.processing.pop(0)
|
|
|
if self.state.processing:
|
|
|
- self.state.timer = int(len(self.state.processing[0]) / float(self.bandwidth) + self.latency)
|
|
|
+ self.state.timer = (len(self.state.processing[0]) / float(self.bandwidth) + self.latency)
|
|
|
else:
|
|
|
self.state.timer = float("inf")
|
|
|
return self.state
|
|
@@ -394,7 +394,7 @@ class Network(AtomicDEVS):
|
|
|
for v in inputs[self.input_port]:
|
|
|
self.state.processing.append(json.dumps(v))
|
|
|
if len(self.state.processing) > 0:
|
|
|
- self.state.timer = int(len(self.state.processing[0]) / float(self.bandwidth) + self.latency)
|
|
|
+ self.state.timer = (len(self.state.processing[0]) / float(self.bandwidth) + self.latency)
|
|
|
return self.state
|
|
|
|
|
|
def outputFnc(self):
|