cur column should contain LAST not AVERAGE, obviously

git-svn-id: http://www.observium.org/svn/observer/trunk@2688 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-10-18 09:56:57 +00:00
parent 7ca62bbe04
commit b973878691

View File

@ -50,7 +50,7 @@ foreach (dbFetchRows("SELECT * FROM toner where device_id = ?", array($id)) as $
$rrd_options .= " DEF:toner$toner_id=$rrd_filename:toner:AVERAGE"; $rrd_options .= " DEF:toner$toner_id=$rrd_filename:toner:AVERAGE";
$rrd_options .= " LINE2:toner$toner_id#".$colour.":'" . $descr . "'"; $rrd_options .= " LINE2:toner$toner_id#".$colour.":'" . $descr . "'";
$rrd_options .= " GPRINT:toner$toner_id:AVERAGE:'%5.0lf%%'"; $rrd_options .= " GPRINT:toner$toner_id:LAST:'%5.0lf%%'";
$rrd_options .= " GPRINT:toner$toner_id:MIN:'%5.0lf%%'"; $rrd_options .= " GPRINT:toner$toner_id:MIN:'%5.0lf%%'";
$rrd_options .= " GPRINT:toner$toner_id:MAX:%5.0lf%%\\\\l"; $rrd_options .= " GPRINT:toner$toner_id:MAX:%5.0lf%%\\\\l";