diff options
author | Delirious Lettuce <delirious.lettuce@gmail.com> | 2017-05-26 10:12:11 -0600 |
---|---|---|
committer | Delirious Lettuce <delirious.lettuce@gmail.com> | 2017-05-26 10:12:11 -0600 |
commit | 5880741c9da625ac4a3528f4c71444785a3bc5a0 (patch) | |
tree | e84afaa0d87bd62103a12d15a7921e5051a1c4ac | |
parent | 979242b47868def83b21786eed1c4f60f7b829bb (diff) | |
download | onionshare-5880741c9da625ac4a3528f4c71444785a3bc5a0.tar.gz onionshare-5880741c9da625ac4a3528f4c71444785a3bc5a0.zip |
Fix issue mentioned by @mig5
-rw-r--r-- | onionshare/common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/onionshare/common.py b/onionshare/common.py index 3008ad3a..86c5c135 100644 --- a/onionshare/common.py +++ b/onionshare/common.py @@ -166,11 +166,11 @@ def format_seconds(seconds): human_readable = [] if days: - human_readable.append("{}d".format(days)) + human_readable.append("{:.0f}d".format(days)) if hours: - human_readable.append("{}h".format(hours)) + human_readable.append("{:.0f}h".format(hours)) if minutes: - human_readable.append("{}m".format(minutes)) + human_readable.append("{:.0f}m".format(minutes)) if seconds or not human_readable: human_readable.append("{:.0f}s".format(seconds)) return ''.join(human_readable) |