mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
/// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,7 +4,7 @@ include("includes/graphs/common.inc.php");
|
||||
|
||||
if($width > "500")
|
||||
{
|
||||
$descr_len = 24; /// FIXME may even be more imo?
|
||||
$descr_len = 24; // FIXME may even be more imo?
|
||||
} else {
|
||||
$descr_len = 12;
|
||||
$descr_len += round(($width - 250) / 8);
|
||||
@@ -62,13 +62,13 @@ foreach ($rrd_list as $i => $rrd)
|
||||
$plusX = ",+";
|
||||
}
|
||||
|
||||
/// Suppress totalling?
|
||||
// Suppress totalling?
|
||||
if (!$nototal)
|
||||
{
|
||||
$rrd_options .= " VDEF:tot".$rrd['ds'].$i."=".$rrd['ds'].$i.",TOTAL";
|
||||
}
|
||||
|
||||
/// This this not the first entry?
|
||||
// This this not the first entry?
|
||||
if ($i) { $stack="STACK"; }
|
||||
# if we've been passed a multiplier we must make a CDEF based on it!
|
||||
$g_defname = $rrd['ds'];
|
||||
@@ -79,7 +79,7 @@ foreach ($rrd_list as $i => $rrd)
|
||||
$rrd_options .= " CDEF:" . $g_defname . $i . "min=" . $rrd['ds'] . $i . "min," . $multiplier . ",*";
|
||||
$rrd_options .= " CDEF:" . $g_defname . $i . "max=" . $rrd['ds'] . $i . "max," . $multiplier . ",*";
|
||||
|
||||
/// If we've been passed a divider (divisor!) we make a CDEF for it.
|
||||
// If we've been passed a divider (divisor!) we make a CDEF for it.
|
||||
} elseif (is_numeric($divider))
|
||||
{
|
||||
$g_defname = $rrd['ds'] . "_cdef";
|
||||
@@ -88,7 +88,7 @@ foreach ($rrd_list as $i => $rrd)
|
||||
$rrd_options .= " CDEF:" . $g_defname . $i . "max=" . $rrd['ds'] . $i . "max," . $divider . ",/";
|
||||
}
|
||||
|
||||
/// Are our text values related to te multiplier/divisor or not?
|
||||
// Are our text values related to te multiplier/divisor or not?
|
||||
if (isset($text_orig) && $text_orig)
|
||||
{
|
||||
$t_defname = $rrd['ds'];
|
||||
|
||||
Reference in New Issue
Block a user