summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_img.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-01-15 20:20:07 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-01-15 20:20:07 +0000
commit1e36cb08526f9c6ee3e8340204c7f931862b7596 (patch)
tree02c73db1aaaf8185be21ab95e160bf5068b3596f /usr/local/www/status_rrd_graph_img.php
parenta3c72e2374916a4dbb2b42448e8b5ff01114d006 (diff)
downloadpfsense-1e36cb08526f9c6ee3e8340204c7f931862b7596.zip
pfsense-1e36cb08526f9c6ee3e8340204c7f931862b7596.tar.gz
Cleanup Quality graph with HEAD version.
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r--usr/local/www/status_rrd_graph_img.php29
1 files changed, 7 insertions, 22 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index 5c445f3..a021d62 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -453,41 +453,26 @@ elseif((strstr($curdatabase, "-quality.rrd")) && (file_exists("$rrddbpath$curdat
DEF:roundtrip=$rrddbpath$curdatabase:roundtrip:AVERAGE \\
DEF:loss=$rrddbpath$curdatabase:loss:AVERAGE \\
\"CDEF:roundavg=roundtrip,PREV(roundtrip),+,2,/\" \\
- \"CDEF:loss10=loss,$multiplier,*,10,*\" \\
+ \"CDEF:loss10=loss,$multiplier,*\" \\
\"CDEF:r0=roundtrip,20,MIN\" \\
\"CDEF:r1=roundtrip,60,MIN\" \\
\"CDEF:r2=roundtrip,180,MIN\" \\
\"CDEF:r3=roundtrip,420,MIN\" \\
- COMMENT:\" * Roundtrip * * Packet loss *\\n\" \\
- COMMENT:\"\\n\" \\
- COMMENT:\" \" \\
+ COMMENT:\"\t\t\t\t\t\tRoundtrip\t\t\tPacket loss\\n\" \\
AREA:roundtrip#$colorqualityrtt[0]:\"> 420 ms\" \\
GPRINT:roundtrip:MIN:\" Min\\: %7.2lf ms\" \\
- COMMENT:\" \" \\
GPRINT:loss:MIN:\"Min\\: %3.1lf %%\\n\" \\
- COMMENT:\" \" \\
AREA:r3#$colorqualityrtt[1]:\"180-420 ms\" \\
- GPRINT:roundtrip:AVERAGE:\" Avg\\: %7.2lf ms\" \\
- COMMENT:\" \" \\
- GPRINT:loss:AVERAGE:\"Avg\\: %3.1lf %%\" \\
- COMMENT:\" Packet loss multiplied\\n\" \\
- COMMENT:\" \" \\
+ GPRINT:roundtrip:AVERAGE:\" Avg\\: %7.2lf ms\" \\
+ GPRINT:loss:AVERAGE:\"Avg\\: %3.1lf %%\\n\" \\
AREA:r2#$colorqualityrtt[2]:\"60-180 ms\" \\
GPRINT:roundtrip:MAX:\" Max\\: %7.2lf ms\" \\
- COMMENT:\" \" \\
- GPRINT:loss:MAX:\"Max\\: %3.1lf %%\" \\
- COMMENT:\" by 10 in graph.\\n\" \\
- COMMENT:\" \" \\
- AREA:r1#$colorqualityrtt[3]:\"20-60 ms\" \\
- COMMENT:\"\\n\" \\
- COMMENT:\" \" \\
+ GPRINT:loss:MAX:\"Max\\: %3.1lf %%\\n\" \\
+ AREA:r1#$colorqualityrtt[3]:\"20-60 ms\\n\" \\
AREA:r0#$colorqualityrtt[4]:\"< 20 ms\" \\
GPRINT:roundtrip:LAST:\" Last\\: %7.2lf ms\" \\
- COMMENT:\" \" \\
- GPRINT:loss:LAST:\"Last\: %3.1lf %%\" \\
- COMMENT:\" \" \\
+ GPRINT:loss:LAST:\"Last\: %3.1lf %%\\n\" \\
AREA:loss10#$colorqualityloss:\"Packet loss\\n\" \\
- COMMENT:\" \" \\
LINE1:roundtrip#$colorqualityrtt[5]:\"roundtrip average\\n\" \\
COMMENT:\"\t\t\t\t\t\t\t\t\t\t\t\t\t`date +\"%b %d %H\:%M\:%S %Y\"`\"";
}
OpenPOWER on IntegriCloud