[rrd-users] Re: Is graphing the exact number possible?
George Dau
gedau at isa.mim.com.au
Thu Mar 29 05:50:40 MEST 2001
Just fake the timestamp so it looks like it runs exactly on the 5 minute
boudary. Instead of using:
rrdtool update /rrd/file.rrd N:bla:bla:bla
use
rrdtool update /rrd/file.rrd `lumpytime`:bla:bla:bla
Here is the C source for lumpytime:
#include <time.h>
int main() {
time_t curtime;
curtime=time(NULL);
curtime-=curtime % 300;
printf("%i",curtime);
exit(0);}
--
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
**********************************************************************
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.
e-mail: supportcentre at mim.com.au
phone: Australia 1800500646
**********************************************************************
--
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