You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From line 124 to 130: start = time.time() while True: try: current = time.time() - start bps = (nbytes*8)/current pps = npackets/current
when this chunk of code gets executed fast enough, current is 0 and python throws and exception about float division error.
example Solution: setting current to non-zero value eg. 1 when it is 0
From line 124 to 130:
start = time.time() while True: try: current = time.time() - start bps = (nbytes*8)/current pps = npackets/currentwhen this chunk of code gets executed fast enough, current is 0 and python throws and exception about float division error.
example Solution: setting current to non-zero value eg. 1 when it is 0