diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2017-03-15 22:39:38 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2017-03-16 23:22:58 +0000 |
commit | 036154fc36a3fdced3c29ed14220b36b3d3732ec (patch) | |
tree | 952a35bf265a03c1f58b4fe68445ccd69a7b60f1 /deluge/common.py | |
parent | e3abdf99015806a4078a946aef1294efd60eb6af (diff) | |
download | deluge-036154fc36a3fdced3c29ed14220b36b3d3732ec.tar.gz deluge-036154fc36a3fdced3c29ed14220b36b3d3732ec.tar.bz2 deluge-036154fc36a3fdced3c29ed14220b36b3d3732ec.zip |
[#2417] [UI] Add Last Transfer to torrent status and torrentview columns
- Create new status entry `time_since_transfer` and getter that is
calculated from lt time_since_upload and time_since_download.
- Add/update all UIs and formatters.
- Included update to console layout to match other uis
Diffstat (limited to 'deluge/common.py')
-rw-r--r-- | deluge/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/common.py b/deluge/common.py index d5f0d8a03..6dd556e36 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -427,7 +427,7 @@ def ftime(secs): """ - if secs == 0: + if secs <= 0: time_str = '' elif secs < 60: time_str = '{:d}s'.format(secs) |