diff options
author | smos <seth.mos@dds.nl> | 2011-03-30 18:22:15 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-03-30 18:22:15 +0200 |
commit | cd2f60c968ae0c7f3bec66c98019d69e68e11a46 (patch) | |
tree | acb055bf077ecbbf43840993af8d8dd69abfcc69 /usr/local | |
parent | a5187d43751edccce1aceb7efec96aae91d616dc (diff) | |
download | pfsense-cd2f60c968ae0c7f3bec66c98019d69e68e11a46.zip pfsense-cd2f60c968ae0c7f3bec66c98019d69e68e11a46.tar.gz |
Add missing color, add multiplier to calculus for inverting line
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 2 | ||||
-rw-r--r-- | usr/local/www/themes/the_wall/rrdcolors.inc.php | 1 |
2 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..795980f 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -315,7 +315,7 @@ 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 .= "VDEF:\"$curif-out_bits_95=$curif-out_bits,95,PERCENT,$multiplier,*\" "; $graphcmd .= "AREA:\"$curif-in_bits_block#{$colortrafficdown[1]}:$curif-in-block\" "; $graphcmd .= "AREA:\"$curif-in_bits_pass#{$colortrafficdown[0]}:$curif-in-pass:STACK\" "; diff --git a/usr/local/www/themes/the_wall/rrdcolors.inc.php b/usr/local/www/themes/the_wall/rrdcolors.inc.php index c2bc613..09956cc 100644 --- a/usr/local/www/themes/the_wall/rrdcolors.inc.php +++ b/usr/local/www/themes/the_wall/rrdcolors.inc.php @@ -32,6 +32,7 @@ $colortrafficup = array("666666", "CCCCCC"); $colortrafficdown = array("990000", "CC0000"); +$colortraffic95 = array("660000", "FF0000"); $colorpacketsup = array("666666", "CCCCCC"); $colorpacketsdown = array("990000", "CC0000"); $colorstates = array('990000','a83c3c','b36666','bd9090','cccccc','000000'); |