[Pkg-privacy-commits] [onionshare] 04/66: Add time elapsed for completed downloads

Ulrike Uhlig u-guest at moszumanska.debian.org
Wed Apr 13 22:17:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository onionshare.

commit e9eed561d6d2b2ce8735f0a506bc4ebd7cbbf161
Author: Garrett Robinson <garrett.f.robinson at gmail.com>
Date:   Wed Dec 23 01:21:40 2015 -0500

    Add time elapsed for completed downloads
---
 onionshare_gui/downloads.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/onionshare_gui/downloads.py b/onionshare_gui/downloads.py
index 654bebb..8b563d1 100644
--- a/onionshare_gui/downloads.py
+++ b/onionshare_gui/downloads.py
@@ -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:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list