From da2d2b45345622df329c169e0ebe2eadcdabc90c Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Wed, 5 Dec 2012 22:23:39 +0100 Subject: [PATCH] Cosmetic change --- glances/glances.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glances/glances.py b/glances/glances.py index 9854daee..b207ebe2 100755 --- a/glances/glances.py +++ b/glances/glances.py @@ -51,10 +51,10 @@ except ImportError: from xmlrpc.server import SimpleXMLRPCServer try: - # python2 + # For Python v2.x from xmlrpclib import ServerProxy except ImportError: - # python3 + # For Python v3.x from xmlrpc.client import ServerProxy if platform.system() != 'Windows': @@ -142,7 +142,6 @@ except Exception: else: psutil_network_io_tag = True - try: # Sensors (optionnal) import sensors @@ -585,7 +584,7 @@ class GlancesStats: Get process (proc) statistics """ procstat = {} - + procstat['memory_info'] = proc.get_memory_info() if psutil_get_cpu_percent_tag: