From 4742f7458321a28ee679405c4b95e620c893fb86 Mon Sep 17 00:00:00 2001 From: microarm15 Date: Mon, 15 Jun 2015 21:28:05 +0200 Subject: [PATCH] add whitespace around the / operator --- i3pystatus/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3pystatus/network.py b/i3pystatus/network.py index 57cbf53..7059873 100644 --- a/i3pystatus/network.py +++ b/i3pystatus/network.py @@ -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)