From e395fe31f1aba36291ccb9822ed82f7d9376e591 Mon Sep 17 00:00:00 2001 From: enkore Date: Thu, 28 May 2015 00:52:38 +0200 Subject: [PATCH] Fix #206 - {kbs} doesn't work if no other traffic formatter is used --- i3pystatus/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/network.py b/i3pystatus/network.py index 74ad65e..f72efd9 100644 --- a/i3pystatus/network.py +++ b/i3pystatus/network.py @@ -311,7 +311,7 @@ class Network(IntervalModule, ColorRangeModule): # Don't require importing psutil unless using the functionality it offers. if any(s in self.format_up or s in self.format_down for s in - ['bytes_sent', 'bytes_recv', 'packets_sent', 'packets_recv', 'network_graph']): + ['bytes_sent', 'bytes_recv', 'packets_sent', 'packets_recv', 'network_graph', 'kbs']): self.network_traffic = NetworkTraffic(self.unknown_up, self.divisor, self.round_size) else: self.network_traffic = None