[modules/traffic] Fix format string width calculation
This commit is contained in:
parent
fc6aa3ca15
commit
6171c792e3
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue