diff options
author | jim-p <jimp@pfsense.org> | 2011-03-31 13:08:06 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-03-31 13:08:06 -0400 |
commit | b482254882feff55b6f5c4a7db0ca79042039261 (patch) | |
tree | e4dc6613bca1f0d3e524f2af9f9a1d6f6294ad85 /usr/local/www | |
parent | 78544d4a99c90f3c19b3cd53c2f1873b625c21bf (diff) | |
download | pfsense-b482254882feff55b6f5c4a7db0ca79042039261.zip pfsense-b482254882feff55b6f5c4a7db0ca79042039261.tar.gz |
Try again to fix the calculation for out bits 95th percentile. (Works for me)
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php index 22802bc..b2d9cbb 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -315,7 +315,8 @@ if((strstr($curdatabase, "-traffic.rrd")) && (file_exists("$rrddbpath$curdatabas $graphcmd .= "CDEF:\"$curif-bytes_t=$curif-bytes_in_t_pass,$curif-bytes_out_t_block,+\" "; $graphcmd .= "VDEF:\"$curif-in_bits_95=$curif-in_bits,95,PERCENT\" "; - $graphcmd .= "VDEF:\"$curif-out_bits_95=$curif-out_bits,95,PERCENT\" "; + $graphcmd .= "CDEF:\"$curif-out_bits_mul=$curif-out_bits,$multiplier,*\" "; + $graphcmd .= "VDEF:\"$curif-out_bits_95=$curif-out_bits_mul,95,PERCENT\" "; $graphcmd .= "AREA:\"$curif-in_bits_block#{$colortrafficdown[1]}:$curif-in-block\" "; $graphcmd .= "AREA:\"$curif-in_bits_pass#{$colortrafficdown[0]}:$curif-in-pass:STACK\" "; |