diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-11-17 23:36:44 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-11-17 23:36:44 +0000 |
commit | ad629036f2b967082714fc90ae1200ebd6eaf7dd (patch) | |
tree | acd4f4a97a8f59a744bf677d1db241f136dca9bf /usr/local/www/status_rrd_graph_img.php | |
parent | 7aa6c10fd5f35365aaf9372f43042a155efca66c (diff) | |
download | pfsense-ad629036f2b967082714fc90ae1200ebd6eaf7dd.zip pfsense-ad629036f2b967082714fc90ae1200ebd6eaf7dd.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 479804b..a3ef1a3 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -241,7 +241,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,+\" "; @@ -253,7 +252,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"; @@ -263,6 +262,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}\" "; |