diff options
Diffstat (limited to 'glances/plugins/glances_core.py')
-rw-r--r-- | glances/plugins/glances_core.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/glances/plugins/glances_core.py b/glances/plugins/glances_core.py index 20127c8b..4dce71c5 100644 --- a/glances/plugins/glances_core.py +++ b/glances/plugins/glances_core.py @@ -19,14 +19,14 @@ """CPU core plugin.""" -import psutil - from glances.plugins.glances_plugin import GlancesPlugin +import psutil + class Plugin(GlancesPlugin): - """Glances' CPU core plugin. + """Glances CPU core plugin. Get stats about CPU core number. @@ -56,7 +56,7 @@ class Plugin(GlancesPlugin): # Reset the stats self.reset() - if self.get_input() == 'local': + if self.input_method == 'local': # Update stats using the standard system lib # The PSUtil 2.0 include psutil.cpu_count() and psutil.cpu_count(logical=False) @@ -70,7 +70,7 @@ class Plugin(GlancesPlugin): except NameError: self.reset() - elif self.get_input() == 'snmp': + elif self.input_method == 'snmp': # Update stats using SNMP # http://stackoverflow.com/questions/5662467/how-to-find-out-the-number-of-cpus-using-snmp pass |