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