mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 04:02:40 -03:00
Add time elapsed for completed downloads
This commit is contained in:
parent
ea47e80f14
commit
e9eed561d6
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue