remove interface name from traffic

This commit is contained in:
Abin Simon 2017-04-21 10:52:34 +05:30
parent 14943a69cb
commit ed3d9bd595

View file

@ -38,7 +38,7 @@ class Module(bumblebee.engine.Module):
_prev_down = widget.get("absdown", 0) _prev_down = widget.get("absdown", 0)
_speed_down = bumblebee.util.bytefmt(int(_current_down) - int(_prev_down)) _speed_down = bumblebee.util.bytefmt(int(_current_down) - int(_prev_down))
_speed_up = bumblebee.util.bytefmt(int(_current_up) - int(_prev_up)) _speed_up = bumblebee.util.bytefmt(int(_current_up) - int(_prev_up))
widget.full_text("{} {} {}".format(interface, _speed_down, _speed_up)) widget.full_text("{} {}".format(_speed_down, _speed_up))
widget.set("absdown", _current_down) widget.set("absdown", _current_down)
widget.set("absup", _current_up) widget.set("absup", _current_up)