From d22d1b32003b4d2fb32d4f096396b99f8b23f4fa Mon Sep 17 00:00:00 2001 From: fraoustin Date: Tue, 20 Aug 2013 19:24:49 +0200 Subject: [PATCH] Update glances.py add client console for windows --- glances/glances.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glances/glances.py b/glances/glances.py index 95ef1130..364b0165 100644 --- a/glances/glances.py +++ b/glances/glances.py @@ -1548,13 +1548,13 @@ class GlancesStats: if psutil_net_io_counters: # psutil >= 1.0.0 try: - get_net_io_counters = psutil.net_io_counters(pernic=True) + get_net_io_counters = psutil.net_io_counters(pernic=True) except IOError: self.network_error_tag = True else: # psutil < 1.0.0 try: - get_net_io_counters = psutil.network_io_counters(pernic=True) + get_net_io_counters = psutil.network_io_counters(pernic=True) except IOError: self.network_error_tag = True @@ -1564,7 +1564,7 @@ class GlancesStats: except IOError: self.network_error_tag = True except UnboundLocalError: - self.network_error_tag = True + self.network_error_tag = True else: self.network_new = get_net_io_counters for net in self.network_new: