summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-25 00:10:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-25 00:10:50 +0000
commitd69784b020744b8016b48623eac2673960b92a4d (patch)
treee665d1e10bd03516148c4076b54e7fea2921b470 /usr
parent98118e825bc54b4053c82052a453cea1d3695d44 (diff)
downloadpfsense-d69784b020744b8016b48623eac2673960b92a4d.zip
pfsense-d69784b020744b8016b48623eac2673960b92a4d.tar.gz
MFC 10857
Graphs have a traffic generated for a period counter (day, week, month, year). Also tidied up the counter presentation.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_rrd_graph.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 2a1f57e..f6b4dab 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -135,24 +135,30 @@ if(($curgraph == "traffic") && (file_exists("$rrddbpath$curif$traffic"))) {
\"CDEF:$curif-bytes_in=$curif-in_bytes,0,12500000,LIMIT,UN,0,$curif-in_bytes,IF,$average,*\" \\
\"CDEF:$curif-bytes_out=$curif-out_bytes,0,12500000,LIMIT,UN,0,$curif-out_bytes,IF,$average,*\" \\
\"CDEF:$curif-bytes=$curif-bytes_in,$curif-bytes_out,+\" \\
+ \"CDEF:$curif-bytes_in_t=$curif-in_bytes,0,12500000,LIMIT,UN,0,$curif-in_bytes,IF,$seconds,*\" \\
+ \"CDEF:$curif-bytes_out_t=$curif-out_bytes,0,12500000,LIMIT,UN,0,$curif-out_bytes,IF,$seconds,*\" \\
+ \"CDEF:$curif-bytes_t=$curif-bytes_in_t,$curif-bytes_out_t,+\" \\
AREA:$curif-in_bits#990000:$curif-in \\
AREA:$curif-out_bits_neg#666666:$curif-out \\
COMMENT:\"\\n\"\\
- COMMENT:\"\t\t maximum average current\\n\"\\
+ COMMENT:\"\t\t maximum average current period\\n\"\\
COMMENT:\"in\t\"\\
GPRINT:$curif-in_bits:MAX:'%7.2lf %sb/s'\\
GPRINT:$curif-in_bits:AVERAGE:'%7.2lf %Sb/s'\\
GPRINT:$curif-in_bits:LAST:'%7.2lf %Sb/s'\\
+ GPRINT:$curif-bytes_in_t:AVERAGE:'%7.2lf %sB i'\\
COMMENT:\"\\n\"\\
COMMENT:\"out\t\"\\
- GPRINT:$curif-out_bits:MAX:'%7.2lf %Sb/s'\\
+ GPRINT:$curif-out_bits:MAX:'%7.2lf %sb/s'\\
GPRINT:$curif-out_bits:AVERAGE:'%7.2lf %Sb/s'\\
GPRINT:$curif-out_bits:LAST:'%7.2lf %Sb/s'\\
+ GPRINT:$curif-bytes_out_t:AVERAGE:'%7.2lf %sB o'\\
COMMENT:\"\\n\"\\
COMMENT:\"totals\"\\
- GPRINT:$curif-bytes_in:AVERAGE:'%7.2lf %sB i'\\
- GPRINT:$curif-bytes_out:AVERAGE:'%7.2lf %sB o'\\
- GPRINT:$curif-bytes:AVERAGE:'%7.2lf %sB t'\\
+ GPRINT:$curif-bytes_in:AVERAGE:'%7.2lf %sB i'\\
+ GPRINT:$curif-bytes_out:AVERAGE:'%7.2lf %sB o'\\
+ GPRINT:$curif-bytes:AVERAGE:'%7.2lf %sB t'\\
+ GPRINT:$curif-bytes_t:AVERAGE:'%7.2lf %sB t'\\
COMMENT:\"\\n\"\\
COMMENT:\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t`date +\"%b %d %H\:%M\:%S %Y\"`\"";
}
OpenPOWER on IntegriCloud