add whitespace around the * operator
This commit is contained in:
parent
475c788c0c
commit
16ab492b84
@ -200,11 +200,11 @@ class NetworkTraffic():
|
||||
|
||||
def get_rx_tot_Mbytes(self, interface):
|
||||
with open("/sys/class/net/{}/statistics/rx_bytes".format(interface)) as f:
|
||||
return int(f.readline().split('\n')[0])/(1024*1024)
|
||||
return int(f.readline().split('\n')[0])/(1024 * 1024)
|
||||
|
||||
def get_tx_tot_Mbytes(self, interface):
|
||||
with open("/sys/class/net/{}/statistics/tx_bytes".format(interface)) as f:
|
||||
return int(f.readline().split('\n')[0])/(1024*1024)
|
||||
return int(f.readline().split('\n')[0])/(1024 * 1024)
|
||||
|
||||
def get_usage(self, interface):
|
||||
self.update_counters(interface)
|
||||
@ -259,8 +259,8 @@ class Network(IntervalModule, ColorRangeModule):
|
||||
* `{bytes_recv}` — bytes received per second (divided by divisor)
|
||||
* `{packets_sent}` — bytes sent per second (divided by divisor)
|
||||
* `{packets_recv}` — bytes received per second (divided by divisor)
|
||||
^ `{rx_tot_Mbytes}` — total Mbytes received
|
||||
^ `{tx_tot_Mbytes}` — total Mbytes sent
|
||||
* `{rx_tot_Mbytes}` — total Mbytes received
|
||||
* `{tx_tot_Mbytes}` — total Mbytes sent
|
||||
"""
|
||||
settings = (
|
||||
("format_up", "format string"),
|
||||
|
Loading…
Reference in New Issue
Block a user