mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
rra? no. you mean ds. also make multi_bits_separated prettier
git-svn-id: http://www.observium.org/svn/observer/trunk@2534 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/// Draw generic bits graph
|
||||
/// args: rra_in, rra_out, rrd_filename, bg, legend, from, to, width, height, inverse, $percentile
|
||||
/// args: ds_in, ds_out, rrd_filename, bg, legend, from, to, width, height, inverse, $percentile
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
@@ -16,10 +16,10 @@ $unit_text = str_pad(truncate($unit_text,$length),$length);
|
||||
$in_text = str_pad(truncate($in_text,$length),$length);
|
||||
$out_text = str_pad(truncate($out_text,$length),$length);
|
||||
|
||||
$rrd_options .= " DEF:".$out."=".$rrd_filename.":".$rra_out.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$in."=".$rrd_filename.":".$rra_in.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$out."_max=".$rrd_filename.":".$rra_out.":MAX";
|
||||
$rrd_options .= " DEF:".$in."_max=".$rrd_filename.":".$rra_in.":MAX";
|
||||
$rrd_options .= " DEF:".$out."=".$rrd_filename.":".$ds_out.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$in."=".$rrd_filename.":".$ds_in.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$out."_max=".$rrd_filename.":".$ds_out.":MAX";
|
||||
$rrd_options .= " DEF:".$in."_max=".$rrd_filename.":".$ds_in.":MAX";
|
||||
|
||||
$rrd_options .= " CDEF:dout_max=out_max,-1,*";
|
||||
$rrd_options .= " CDEF:dout=out,-1,*";
|
||||
@@ -90,4 +90,4 @@ if ($percentile)
|
||||
$rrd_options .= " LINE1:dpercentile_out#aa0000";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user