From 6171c792e3a8291334c742258d203ae90313a910 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 5 Mar 2020 21:08:12 +0100 Subject: [PATCH] [modules/traffic] Fix format string width calculation --- bumblebee/modules/traffic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/traffic.py b/bumblebee/modules/traffic.py index 47271e9..a85c026 100644 --- a/bumblebee/modules/traffic.py +++ b/bumblebee/modules/traffic.py @@ -95,9 +95,10 @@ class Module(bumblebee.engine.Module): minwidth_str += "." + "0" * length except AttributeError: # return default value - return "1000.00MB" + return "1000.00KiB/s" finally: - minwidth_str += "MB" + minwidth_str += "KiB/s" + print(minwidth_str) return minwidth_str def _update_widgets(self, widgets):