From 1b9c3d1835f4f881c0a0d7bc8a6a1dd09314a107 Mon Sep 17 00:00:00 2001 From: iou1name Date: Fri, 22 Feb 2019 23:16:23 -0500 Subject: [PATCH] fixed time_units() --- rtorrent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtorrent.py b/rtorrent.py index 30c30d3..987f383 100644 --- a/rtorrent.py +++ b/rtorrent.py @@ -99,6 +99,8 @@ def time_units(seconds): hours = (seconds % (24*60*60)) // (60*60) eta = f"{days}d{hours}h" elif seconds > (60*60): + hours = seconds // (60*60) + minutes = (seconds % (60*60)) // 60 eta = f"{hours}h{minutes}m" elif seconds > 60: minutes = seconds // 60