[modules/traffic] Fix format string width calculation

This commit is contained in:
Tobias Witek 2020-03-05 21:08:12 +01:00
parent fc6aa3ca15
commit 6171c792e3

View file

@ -95,9 +95,10 @@ class Module(bumblebee.engine.Module):
minwidth_str += "." + "0" * length minwidth_str += "." + "0" * length
except AttributeError: except AttributeError:
# return default value # return default value
return "1000.00MB" return "1000.00KiB/s"
finally: finally:
minwidth_str += "MB" minwidth_str += "KiB/s"
print(minwidth_str)
return minwidth_str return minwidth_str
def _update_widgets(self, widgets): def _update_widgets(self, widgets):