summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2017-01-19 19:51:25 +0100
committernicolargo <nicolas@nicolargo.com>2017-01-19 19:51:25 +0100
commit9c0e27c44a0c9d478489b47fbf7ac7ef69bec3e9 (patch)
treed64caf3d77062cf6a7434a187a3e096f9e0782b6
parent33e33875b19664419b63efd94df8cc184ceded4c (diff)
Correct short key error: l, D, I
-rw-r--r--glances/outputs/glances_curses.py2
-rw-r--r--glances/stats.py10
2 files changed, 8 insertions, 4 deletions
diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py
index 967e2ce4..acd7e9ef 100644
--- a/glances/outputs/glances_curses.py
+++ b/glances/outputs/glances_curses.py
@@ -472,7 +472,7 @@ class _GlancesCurses(object):
:returns: dict of dict
"""
ret = {}
- for p in stats.getAllPlugins():
+ for p in stats.getAllPlugins(enable=False):
if p in ['network', 'wifi', 'irq', 'fs', 'folders']:
ret[p] = stats.get_plugin(p).get_stats_display(
args=self.args, max_width=plugin_max_width)
diff --git a/glances/stats.py b/glances/stats.py
index 00872a36..801afa08 100644
--- a/glances/stats.py
+++ b/glances/stats.py
@@ -133,9 +133,13 @@ class GlancesStats(object):
logger.debug("Available exports modules list: {}".format(self.getExportList()))
return True
- def getAllPlugins(self):
- """Return the plugins list."""
- return [p for p in self._plugins if self._plugins[p].is_enable()]
+ def getAllPlugins(self, enable=True):
+ """Return the enable plugins list.
+ if enable is False, return the list of all the plugins"""
+ if enable:
+ return [p for p in self._plugins if self._plugins[p].is_enable()]
+ else:
+ return [p for p in self._plugins]
def getExportList(self):
"""Return the exports modules list."""