fix var name. Fixes #4359

This commit is contained in:
Yann Leboulanger 2008-10-03 10:17:30 +00:00
parent 4a78e2137d
commit f321d52d24
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ _('Connection with peer cannot be established.'))
last = file_props['transfered_size'][-1]
transfered = last[1] - first[1]
tim = last[0] - first[0]
if time == 0:
if tim == 0:
return 0., 0.
speed = round(float(transfered) / tim)
if speed == 0.: