On Fri, 20 Feb 2004 [EMAIL PROTECTED] wrote: > Can someone post a script to help w/ this. I'm having the same issue. I > want my integers to be in the datebase, not the "extra calculation". >
> > Make sur that your update happens exactly (up to the second) at the > > times specified in your rrd. If needed you can 'fake' a timestamp for > > this by some simple integer calculation. > > Otherwise rrdtool does by itself some extra calculation on your data. > > I use this with Perl: ########## Build the Timestamp, # this is necessary for storing integers use integer; $timestamp=$INTERVAL * (time()/$INTERVAL); no integer; ... and this with zsh: TIME=`date +%s` TIMESTAMP=`echo "$INTERVAL * ( ( $TIME -$INTERVAL ) / $INTERVAL )"|bc` regards Stephan Knabe -- 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
