small bugfix

This commit is contained in:
Jan Laukemann
2017-11-01 23:49:30 +01:00
parent d084229605
commit a6e73bd2f0

View File

@@ -75,7 +75,8 @@ class Scheduler(object):
if(entry.TP.values[0] == 0):
t_all = ()
if(variations == 1):
occ_ports[i] = [entry.TP.values[0] for x in range(self.ports)]
for j in tup[0]:
occ_ports[i][j] = entry.TP.values[0]
else:
for j in range(0, self.ports):
occ_ports[i][j] = t_all.count(j) / variations