[rrd-users] Re: precise bins
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Thu Jun 21 01:37:58 MEST 2001
Joseph E. Eggleston wrote:
> Hi All,
> Is it possible to specify the exact wall clock time for bins (steps)? For
> example, keeping bins that start and end every minute, on the minute.
Any step size is allowed as long as it is a multiple of 1 second.
The start and end times of each interval will be n*stepsize, with
n being an integer and n*stepsize the unix time-since-epoch time.
So yes: you can have bins that start and end every minute on the minute.
and no: you cannot have bins that start and end at arbitrary times.
To see if your desired configuration can be made reality you need to
convert the wall clock time into seconds since the epoch and try to
integer divide that by the step size. If there is no remainder, it
will work.
cheers,
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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