mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Overhaul use of rrdtool_lastupdate & STACK for rrdtool 1.4/1.5 compatibility
This commit is contained in:
@@ -20,7 +20,7 @@ else {
|
||||
}
|
||||
|
||||
if ($print_total) {
|
||||
$rrd_options .= ' VDEF:'.$ds.'_total=ds,TOTAL';
|
||||
$rrd_options .= ' VDEF:'.$ds.'_total='.$ds.',TOTAL';
|
||||
}
|
||||
|
||||
if ($percentile) {
|
||||
@@ -43,7 +43,7 @@ if ($_GET['previous'] == 'yes') {
|
||||
}
|
||||
|
||||
if ($print_total) {
|
||||
$rrd_options .= ' VDEF:'.$ds.'_totalX=ds,TOTAL';
|
||||
$rrd_options .= ' VDEF:'.$ds.'_totalX='.$ds.',TOTAL';
|
||||
}
|
||||
|
||||
if ($percentile) {
|
||||
@@ -74,11 +74,11 @@ if ($percentile) {
|
||||
$rrd_options .= ' GPRINT:'.$ds.'_percentile:%6.2lf%s';
|
||||
}
|
||||
|
||||
$rrd_options .= "\\\\n";
|
||||
$rrd_options .= " COMMENT:\\\\n";
|
||||
$rrd_options .= "\\n";
|
||||
$rrd_options .= " COMMENT:\\n";
|
||||
|
||||
if ($print_total) {
|
||||
$rrd_options .= ' GPRINT:'.$ds.'_tot:Total\ %6.2lf%s\)\\\\l';
|
||||
$rrd_options .= ' GPRINT:'.$ds.'_total:Total" %6.2lf%s"\\l';
|
||||
}
|
||||
|
||||
if ($percentile) {
|
||||
@@ -86,6 +86,6 @@ if ($percentile) {
|
||||
}
|
||||
|
||||
if ($_GET['previous'] == 'yes') {
|
||||
$rrd_options .= ' LINE1.25:'.$ds."X#666666:'Prev \\\\n'";
|
||||
$rrd_options .= ' LINE1.25:'.$ds."X#666666:'Prev \\n'";
|
||||
$rrd_options .= ' AREA:'.$ds.'X#99999966:';
|
||||
}
|
||||
|
Reference in New Issue
Block a user