Avoid divisin by zero exception in the network load segment

This commit is contained in:
Kovid Goyal 2013-03-18 22:13:20 +05:30 committed by ZyX
parent 4551bd2887
commit fd6c1f1e13
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ class NetworkLoadSegment(KwThreadedSegment):
t2, b2 = idata['last']
measure_interval = t2 - t1
if None in (b1, b2):
if None in (b1, b2) or measure_interval == 0:
return None
return [{