[all] black code :)
This commit is contained in:
parent
320827d577
commit
92577e7d26
14 changed files with 291 additions and 192 deletions
|
@ -159,8 +159,7 @@ class Module(core.module.Module):
|
|||
for direction in ["rx", "tx"]:
|
||||
name = "traffic.{}-{}".format(direction, interface)
|
||||
widget = self.create_widget(
|
||||
name,
|
||||
attributes={"theme.minwidth": self.get_minwidth_str()},
|
||||
name, attributes={"theme.minwidth": self.get_minwidth_str()},
|
||||
)
|
||||
prev = self._prev.get(name, 0)
|
||||
bspeed = (int(data[direction]) - int(prev)) / timediff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue