summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-02 14:35:23 -0400
committerjim-p <jimp@pfsense.org>2011-05-02 14:36:04 -0400
commit49825b1711f01d4f6120d0b424ab25347992a916 (patch)
treeae8d3d4b2301a42a71cc0f99222eccbf7175d5f3 /usr
parent3bae60be171c1a845ef1fdc0a541bd08c8737a45 (diff)
downloadpfsense-49825b1711f01d4f6120d0b424ab25347992a916.zip
pfsense-49825b1711f01d4f6120d0b424ab25347992a916.tar.gz
If the rrd multiplier is negative, use 5% for out instead of 95% for the 95th percentile line.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/status_rrd_graph_img.php3
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 b2d9cbb..a6dbef0 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -316,7 +316,8 @@ if((strstr($curdatabase, "-traffic.rrd")) && (file_exists("$rrddbpath$curdatabas
$graphcmd .= "VDEF:\"$curif-in_bits_95=$curif-in_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\" ";
+ $perc = $multiplier > 0 ? "95" : "5";
+ $graphcmd .= "VDEF:\"$curif-out_bits_95=$curif-out_bits_mul,{$perc},PERCENT\" ";
$graphcmd .= "AREA:\"$curif-in_bits_block#{$colortrafficdown[1]}:$curif-in-block\" ";
$graphcmd .= "AREA:\"$curif-in_bits_pass#{$colortrafficdown[0]}:$curif-in-pass:STACK\" ";
OpenPOWER on IntegriCloud