summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2021-02-07 15:32:31 +0100
committernicolargo <nicolas@nicolargo.com>2021-02-07 15:32:31 +0100
commit7bcf1f3baed12a6bcae6fa26f6af96cd5d965a73 (patch)
tree949c3a2685b7911bd2d70b7f23c6982fa18e1528
parentd82376230d3e5daed34624c459e5b64dcc9e7f33 (diff)
Disable hide zero function by default because it is under developement...
-rw-r--r--NEWS.rst7
-rw-r--r--glances/plugins/glances_diskio.py3
-rw-r--r--glances/plugins/glances_network.py3
3 files changed, 11 insertions, 2 deletions
diff --git a/NEWS.rst b/NEWS.rst
index c8d83da7..df280e33 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -9,6 +9,13 @@ This version is under development.
Please have a look on the roadmap: https://github.com/nicolargo/glances/milestone/47
+Version 3.1.6.2
+===============
+
+Bugs corrected:
+
+ * Remove bad merge for a non tested feature(see https://github.com/nicolargo/glances/issues/1787#issuecomment-774682954)
+
Version 3.1.6.1
===============
diff --git a/glances/plugins/glances_diskio.py b/glances/plugins/glances_diskio.py
index 3fe66543..9ac1e4ec 100644
--- a/glances/plugins/glances_diskio.py
+++ b/glances/plugins/glances_diskio.py
@@ -53,7 +53,8 @@ class Plugin(GlancesPlugin):
# We want to display the stat in the curse interface
self.display_curse = True
# Hide stats if it has never been != 0
- self.hide_zero = True
+ self.hide_zero = config.get_bool_value(
+ self.plugin_name, 'hide_zero', default=False)
self.hide_zero_fields = ['read_bytes', 'write_bytes']
def get_key(self):
diff --git a/glances/plugins/glances_network.py b/glances/plugins/glances_network.py
index 2adf3653..75e77c9d 100644
--- a/glances/plugins/glances_network.py
+++ b/glances/plugins/glances_network.py
@@ -62,7 +62,8 @@ class Plugin(GlancesPlugin):
# We want to display the stat in the curse interface
self.display_curse = True
# Hide stats if it has never been != 0
- self.hide_zero = True
+ self.hide_zero = config.get_bool_value(
+ self.plugin_name, 'hide_zero', default=False)
self.hide_zero_fields = ['rx', 'tx']
def get_key(self):