[knuckles] fix remaining time / size when resuming filetransfert. Fixes #1437

This commit is contained in:
Yann Leboulanger 2006-01-21 21:26:29 +00:00
parent ef86ddf65b
commit 647e033c2d
1 changed files with 3 additions and 0 deletions

View File

@ -478,6 +478,9 @@ _('Connection with peer cannot be established.'))
# Kb/s
# remaining time
if file_props.has_key('offset') and file_props['offset']:
transfered_size -= file_props['offset']
full_size -= file_props['offset']
eta, speed = self._get_eta_and_speed(full_size, transfered_size,
file_props['elapsed-time'])