diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-11-17 23:35:26 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-11-17 23:35:26 +0000 |
commit | c9a4b3f267f0b216c807ba26fb6bab0b57f1bb86 (patch) | |
tree | 0d834705afcd6bea8ac91d23aaa28000f052b75d /usr/local/www/status_rrd_graph_img.php | |
parent | 28949e85b250c3d9ffa5eba1b61149a148ca78d8 (diff) | |
download | pfsense-c9a4b3f267f0b216c807ba26fb6bab0b57f1bb86.zip pfsense-c9a4b3f267f0b216c807ba26fb6bab0b57f1bb86.tar.gz |
Fix math on throughput graph
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php index 5525ddd..dac3bda 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -247,7 +247,6 @@ elseif(strstr($curdatabase, "-throughput.rrd")) { $graphcmd .= "\"CDEF:{$ifname}-in_bits={$ifname}-in_bytes,8,*\" "; $graphcmd .= "\"CDEF:{$ifname}-out_bits={$ifname}-out_bytes,8,*\" "; $graphcmd .= "\"CDEF:{$ifname}-bits_io={$ifname}-in_bits,{$ifname}-out_bits,+\" "; - $graphcmd .= "\"CDEF:{$ifname}-out_bits_neg={$ifname}-out_bits,$multiplier,*\" "; $graphcmd .= "\"CDEF:{$ifname}-bytes_in={$ifname}-in_bytes,0,$downstream,LIMIT,UN,0,{$ifname}-in_bytes,IF,$average,*\" "; $graphcmd .= "\"CDEF:{$ifname}-bytes_out={$ifname}-out_bytes,0,$upstream,LIMIT,UN,0,{$ifname}-out_bytes,IF,$average,*\" "; $graphcmd .= "\"CDEF:{$ifname}-bytes={$ifname}-bytes_in,{$ifname}-bytes_out,+\" "; @@ -259,7 +258,7 @@ elseif(strstr($curdatabase, "-throughput.rrd")) { $comma = ","; } $graphtputbi .= "{$comma}{$ifname}-in_bits"; - $graphtputbo .= "{$comma}{$ifname}-out_bits_neg"; + $graphtputbo .= "{$comma}{$ifname}-out_bits"; $graphtputbt .= "{$comma}{$ifname}-bits_io"; $graphtputbyi .= "{$comma}{$ifname}-bytes_in_t"; $graphtputbyo .= "{$comma}{$ifname}-bytes_out_t"; @@ -269,6 +268,7 @@ elseif(strstr($curdatabase, "-throughput.rrd")) { $graphcmd .= "\"CDEF:tput-in_bits={$graphtputbi}{$operand}\" "; $graphcmd .= "\"CDEF:tput-out_bits={$graphtputbo}{$operand}\" "; $graphcmd .= "\"CDEF:tput-bits_io={$graphtputbt}{$operand}\" "; + $graphcmd .= "\"CDEF:tput-out_bits_neg=tput-out_bits,$multiplier,*\" "; $graphcmd .= "\"CDEF:tput-bytes_in_t={$graphtputbyi}{$operand}\" "; $graphcmd .= "\"CDEF:tput-bytes_out_t={$graphtputbyo}{$operand}\" "; $graphcmd .= "\"CDEF:tput-bytes_t={$graphtputbyt}{$operand}\" "; |