From: Michael Tremer Date: Mon, 26 Oct 2015 13:26:22 +0000 (+0100) Subject: latency: Don't show full packet loss in background X-Git-Tag: 004~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baa4852aecabe6d80eb5ea60ccf0cbf5c4fb822d;p=collecty.git latency: Don't show full packet loss in background If a system has no connectivity to either IPv6 or IPv4 the background will turn dark because 100% packet loss is detected. We will now only paint the background dark for packet loss up to 99% and for 100% packet loss the line will not be continued so that this is easily readable, too. Signed-off-by: Michael Tremer --- diff --git a/src/collecty/plugins/latency.py b/src/collecty/plugins/latency.py index a219240..127ff80 100644 --- a/src/collecty/plugins/latency.py +++ b/src/collecty/plugins/latency.py @@ -59,7 +59,7 @@ class GraphTemplateLatency(base.GraphTemplate): "CDEF:l010=ploss,5,10,LIMIT,UN,UNKN,INF,IF", "CDEF:l025=ploss,10,25,LIMIT,UN,UNKN,INF,IF", "CDEF:l050=ploss,25,50,LIMIT,UN,UNKN,INF,IF", - "CDEF:l100=ploss,50,100,LIMIT,UN,UNKN,INF,IF", + "CDEF:l099=ploss,50,99,LIMIT,UN,UNKN,INF,IF", "VDEF:latency6min=latency6,MINIMUM", "VDEF:latency6max=latency6,MAXIMUM", @@ -76,7 +76,7 @@ class GraphTemplateLatency(base.GraphTemplate): "AREA:l010#cccccc:%s" % _("5-10%%"), "AREA:l025#999999:%s" % _("10-25%%"), "AREA:l050#666666:%s" % _("25-50%%"), - "AREA:l100#333333:%s" % _("50-100%%") + "\\r", + "AREA:l099#333333:%s" % _("50-99%%") + "\\r", "COMMENT: \\n", # empty line