git-svn-id: http://www.observium.org/svn/observer/trunk@483 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-10-13 08:36:54 +00:00
parent 7c0ddaeca5
commit ef6df60201
3 changed files with 27 additions and 39 deletions

View File

@@ -26,7 +26,7 @@ function graph_multi_bits ($args) {
$options .= " CDEF:inbits=inoctets,8,*";
$options .= " CDEF:outbits=outoctets,8,*";
$options .= " CDEF:doutbits=doutoctets,8,*";
if($args['legend'] == '0') {
if($args['legend'] == 'no' || $args['legend'] == '1') {
$options .= " AREA:inbits#CDEB8B:";
$options .= " LINE1.25:inbits#006600:";
$options .= " AREA:doutbits#C3D9FF:";
@@ -57,7 +57,9 @@ $args['from'] = $from;
$args['to'] = $to;
$args['width'] = $width;
$args['height'] = $height;
if($_GET['legend']) {
$args['legend'] = $_GET['legend'];
}
$graph = graph_multi_bits ($args);
?>