From c364c7070f90e73dc18b87a2cf1e2349ee437bbb Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Sat, 29 Mar 2014 14:37:58 +0100 Subject: [PATCH] Pep8 --- glances/__init__.py | 2 +- glances/__main__.py | 3 ++- glances/core/glances_main.py | 3 +++ glances/core/glances_processes.py | 2 +- glances/plugins/glances_core.py | 2 +- glances/plugins/glances_diskio.py | 1 - 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/glances/__init__.py b/glances/__init__.py index 173ad00d..4384a87b 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -39,7 +39,7 @@ def __signal_handler(signal, frame): def end(): """ - Stop Glances + Stop Glances """ if (core.is_standalone()): diff --git a/glances/__main__.py b/glances/__main__.py index 4070a70c..836295cc 100644 --- a/glances/__main__.py +++ b/glances/__main__.py @@ -36,4 +36,5 @@ if ((__package__ is None) and (not hasattr(sys, "frozen"))): import glances if __name__ == '__main__': - glances.main() \ No newline at end of file + glances.main() + \ No newline at end of file diff --git a/glances/core/glances_main.py b/glances/core/glances_main.py index c544ea02..b3da8263 100644 --- a/glances/core/glances_main.py +++ b/glances/core/glances_main.py @@ -17,6 +17,9 @@ # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . +""" +Main Glances script +""" # Import system libs import sys diff --git a/glances/core/glances_processes.py b/glances/core/glances_processes.py index a4c798b8..3bd724f1 100644 --- a/glances/core/glances_processes.py +++ b/glances/core/glances_processes.py @@ -169,7 +169,7 @@ class glancesProcesses: # Do not process if disable tag is set if (self.disable_tag): - return + return # Get the time since last update time_since_update = getTimeSinceLastUpdate('process_disk') diff --git a/glances/plugins/glances_core.py b/glances/plugins/glances_core.py index 965954db..f2ab5833 100644 --- a/glances/plugins/glances_core.py +++ b/glances/plugins/glances_core.py @@ -60,7 +60,7 @@ class Plugin(GlancesPlugin): core_stats["log"] = cpu_count() except NameError: core_stats = None - + self.stats = core_stats return self.stats diff --git a/glances/plugins/glances_diskio.py b/glances/plugins/glances_diskio.py index 8c139c97..c221021c 100644 --- a/glances/plugins/glances_diskio.py +++ b/glances/plugins/glances_diskio.py @@ -51,7 +51,6 @@ class Plugin(GlancesPlugin): # Init stats self.diskio_old = [] - def update(self): """ Update disk IO stats