@@ 55-67 (lines=13) @@ | ||
52 | stats is a list |
|
53 | """ |
|
54 | ||
55 | def __init__(self, args=None, config=None): |
|
56 | """Init the plugin.""" |
|
57 | super(Plugin, self).__init__(args=args, |
|
58 | config=config, |
|
59 | items_history_list=items_history_list, |
|
60 | stats_init_value=[]) |
|
61 | ||
62 | # We want to display the stat in the curse interface |
|
63 | self.display_curse = True |
|
64 | # Hide stats if it has never been != 0 |
|
65 | self.hide_zero = config.get_bool_value( |
|
66 | self.plugin_name, 'hide_zero', default=False) |
|
67 | self.hide_zero_fields = ['rx', 'tx'] |
|
68 | ||
69 | def get_key(self): |
|
70 | """Return the key of the list.""" |
@@ 46-58 (lines=13) @@ | ||
43 | stats is a list |
|
44 | """ |
|
45 | ||
46 | def __init__(self, args=None, config=None): |
|
47 | """Init the plugin.""" |
|
48 | super(Plugin, self).__init__(args=args, |
|
49 | config=config, |
|
50 | items_history_list=items_history_list, |
|
51 | stats_init_value=[]) |
|
52 | ||
53 | # We want to display the stat in the curse interface |
|
54 | self.display_curse = True |
|
55 | # Hide stats if it has never been != 0 |
|
56 | self.hide_zero = config.get_bool_value( |
|
57 | self.plugin_name, 'hide_zero', default=False) |
|
58 | self.hide_zero_fields = ['read_bytes', 'write_bytes'] |
|
59 | ||
60 | def get_key(self): |
|
61 | """Return the key of the list.""" |