Hi, the problem is that I do not know my measurement interval in advance.
It can be anything between 60s and 3600s and I could not find out how to find out the first one at eg. 79s interval otherwise than this. br, Laszlo -----Original Message----- From: Stephan Harren [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 10:55 AM To: Németh László; [email protected] Subject: Re: [rrd-users] Re: FMAX, MIN, LAST with GAUGE data Wouldn't it be easier to make the timestamp divideable by sixty? $normalized_timestamp=int($actual_timestamp/60)*60; Best regards, Stephan > In Perl: > RRDs::create( "clijobs.rrd", "--step",$perfloginterval, > "DS:jobs:GAUGE:$perfloginterval:U:U", > "RRA:AVERAGE:0.5:1:10" ); > > my $info = RRDs::info("clijobs.rrd"); > my > $firstMeas=$$info{last_update}+$$info{step}-$$info{'ds[jobs].unknown_sec'}; > > then the first measurement should be done at $firstMeas. -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
