From 290340c60aef43d15ee02a9bd48f4663abeb93bb Mon Sep 17 00:00:00 2001 From: friction87 <77915543+friction87@users.noreply.github.com> Date: Sun, 24 Jan 2021 01:13:21 -0700 Subject: [PATCH] Convert IEC units to SI --- utils/rtorrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/rtorrent.py b/utils/rtorrent.py index 435cbad..0625bb5 100644 --- a/utils/rtorrent.py +++ b/utils/rtorrent.py @@ -32,7 +32,7 @@ def get_download_rate(self): total_rate = proxy.throttle.global_down.rate() except Exception: pass - return "%sps" % misc.bytes_to_string(total_rate).replace('B', 'b') + return "%sps" % misc.bytes_to_string(total_rate * 8.38861).replace('B', 'b') def get_upload_rate(self): total_rate = 0 @@ -41,7 +41,7 @@ def get_upload_rate(self): total_rate = proxy.throttle.global_up.rate() except Exception: pass - return "%sps" % misc.bytes_to_string(total_rate).replace('B', 'b') + return "%sps" % misc.bytes_to_string(total_rate * 8.38861).replace('B', 'b') def get_torrent_counts(self): total_seeding = 0