From bb0e762e78ef6c5536ce2d269cbad9ed69948bfe Mon Sep 17 00:00:00 2001 From: aristocratos Date: Sat, 15 Aug 2020 20:57:14 +0200 Subject: [PATCH] Fixed net_upload variable not working --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index c472c6f..4793c36 100755 --- a/bpytop.py +++ b/bpytop.py @@ -2879,7 +2879,7 @@ class NetCollector(Collector): speed = stat["speed"][-1] if cls.net_min[direction] == -1: - cls.net_min[direction] = units_to_bytes(CONFIG.net_download) + cls.net_min[direction] = units_to_bytes(getattr(CONFIG, "net_" + direction)) stat["graph_top"] = cls.net_min[direction] stat["graph_lower"] = 7 if not cls.auto_min: