Disable hide zero function by default because it is under developement...

This commit is contained in:
nicolargo 2021-02-07 15:32:31 +01:00
parent d82376230d
commit 7bcf1f3bae
3 changed files with 11 additions and 2 deletions

View File

@ -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
===============

View File

@ -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):

View File

@ -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):