[rrd-users] Re: FMAX, MIN, LAST with GAUGE data

Stephan Harren sh at abovenet.de
Tue Jan 28 10:54:58 MET 2003


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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list