Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Suggested VRULE code mod

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
andy
Guest





PostPosted: Tue Jul 16, 2002 7:22 pm    Post subject: Suggested VRULE code mod Reply with quote

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));
}
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Thu Jul 18, 2002 8:47 pm    Post subject: Reply with quote

People should be able to find it easier here.

-Ian
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group