fix var name. Fixes #4359
This commit is contained in:
parent
4a78e2137d
commit
f321d52d24
|
@ -449,7 +449,7 @@ _('Connection with peer cannot be established.'))
|
||||||
last = file_props['transfered_size'][-1]
|
last = file_props['transfered_size'][-1]
|
||||||
transfered = last[1] - first[1]
|
transfered = last[1] - first[1]
|
||||||
tim = last[0] - first[0]
|
tim = last[0] - first[0]
|
||||||
if time == 0:
|
if tim == 0:
|
||||||
return 0., 0.
|
return 0., 0.
|
||||||
speed = round(float(transfered) / tim)
|
speed = round(float(transfered) / tim)
|
||||||
if speed == 0.:
|
if speed == 0.:
|
||||||
|
|
Loading…
Reference in New Issue