andy Guest
|
Posted: Tue Jul 16, 2002 7:22 pm Post subject: Suggested VRULE code mod |
|
|
This diff to rrd_functions.php allows you to specify, e.g. -24:00 in the VRULE Value to draw a line at 24 hours ago.
Replace in the VRULE section:
$value = date("U", mktime($value_array[0],$value_array[1],0));
with:
if($value_array[0] < 0) {
$value = date("U") - (-3600*$value_array[0]) - 60*$value_array[1];
} else {
$value = date("U", mktime($value_array[0],$value_array[1],0));
} |
|