while True:
if spread == 'gauss':
ga = abs(random.gauss(0, 1))
- rv = int(ga*float(maxn)/3)
+ rv = int(ga * float(maxn) / 3)
if rv < maxn:
return rv
elif spread == 'linear':
It also returns a dictionary with statsistics."""
swflows = [_randomize(swspread, switches) for f in range(int(flows))]
# we have to increse the switch index because mininet start indexing switches from 1 (not 0)
- fltables = [(s+1, _randomize(tabspread, tables), idx) for idx, s in enumerate(swflows)]
+ fltables = [(s + 1, _randomize(tabspread, tables), idx) for idx, s in enumerate(swflows)]
notes = _get_notes(fltables)
return fltables, notes