mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
min *not* max value of fields needs to be 0
Ensure graph is not showing negative values when counters are reset.
This commit is contained in:
parent
208c41b5fd
commit
08b889d9dc
1 changed files with 2 additions and 2 deletions
|
@ -231,10 +231,10 @@ class MuninNftCountersPlugin(MuninPlugin):
|
|||
|
||||
if self.envCheckFilter("counters", counter["name"]):
|
||||
if not (count_only == "bytes"):
|
||||
graph_packets.addField(counter["name"], counter["name"], max=0,
|
||||
graph_packets.addField(counter["name"], counter["name"], min=0,
|
||||
type="DERIVE", info=field_info)
|
||||
if not (count_only == "packets"):
|
||||
graph_bytes.addField(counter["name"], counter["name"], max=0,
|
||||
graph_bytes.addField(counter["name"], counter["name"], min=0,
|
||||
type="DERIVE", info=field_info)
|
||||
|
||||
if not (count_only == "bytes"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue