mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
apache graph improvements. bytes => bits
git-svn-id: http://www.observium.org/svn/observer/trunk@2667 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -8,8 +8,17 @@ include("includes/graphs/common.inc.php");
|
||||
$unit_text = str_pad(truncate($unit_text,18,''),18);
|
||||
$line_text = str_pad(truncate($line_text,12,''),12);
|
||||
|
||||
$rrd_options .= " DEF:".$ds."=".$rrd_filename.":".$ds.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$ds."_max=".$rrd_filename.":".$ds.":MAX";
|
||||
if($multiplier)
|
||||
{
|
||||
$rrd_options .= " DEF:".$ds."_o=".$rrd_filename.":".$ds.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$ds."_max_o=".$rrd_filename.":".$ds.":MAX";
|
||||
$rrd_options .= " CDEF:".$ds."=".$ds."_o,$multiplier,*";
|
||||
$rrd_options .= " CDEF:".$ds."_max=".$ds."_max_o,$multiplier,*";
|
||||
} else {
|
||||
$rrd_options .= " DEF:".$ds."=".$rrd_filename.":".$ds.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$ds."_max=".$rrd_filename.":".$ds.":MAX";
|
||||
}
|
||||
|
||||
|
||||
if ($print_total)
|
||||
{
|
||||
@@ -57,4 +66,4 @@ if ($percentile)
|
||||
$rrd_options .= " LINE1:".$ds."_percentile#aa0000";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user