moved 'speed' in the time column. Still ugly!

This commit is contained in:
Dimitur Kirov 2005-09-08 22:27:00 +00:00
parent 268a265211
commit bbf068c7db
1 changed files with 7 additions and 5 deletions

View File

@ -442,15 +442,17 @@ _('Connection with peer cannot be established.'))
eta, speed = self._get_eta_and_speed(full_size, transfered_size,
file_props['elapsed-time'])
self.model.set(iter, C_PROGRESS, text)
self.model.set(iter, C_PERCENT, int(percent))
text = self._format_time(eta)
#This should make the string Kb/s,
#where 'Kb' part is taken from %s.
#Only the last 's' should be translated.
text += _(' (%s/s)') % helpers.convert_bytes(speed)
self.model.set(iter, C_PROGRESS, text)
self.model.set(iter, C_PERCENT, int(percent))
text += '\n'
text += _('(%s/s)') % helpers.convert_bytes(speed)
self.model.set(iter, C_TIME, text)
self.model.set(iter, C_TIME,
self._format_time(eta))
# try to guess what should be the status image
if file_props['type'] == 'r':
status = 'download'
else: