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