Add time elapsed for completed downloads

This commit is contained in:
Garrett Robinson 2015-12-23 01:21:40 -05:00
parent ea47e80f14
commit e9eed561d6

View file

@ -52,7 +52,8 @@ class Download(object):
self.progress_bar.setValue(downloaded_bytes)
if downloaded_bytes == self.progress_bar.total_bytes:
pb_fmt = "%p%"
pb_fmt = "%p%, Time Elapsed: {0:s}".format(
helpers.format_seconds(time.time() - self.started))
else:
elapsed = time.time() - self.started
if elapsed < 10: