[rrd-users] Re: feature request

Rainer Bawidamann Rainer.Bawidamann at rz.uni-ulm.de
Thu Aug 31 10:04:44 MEST 2000

In article <Pine.BSF.4.21.0008302351210.7697-100000 at roscoe.ah.bikeworld.net>,
	chris at bikeworld.com (Chris Snell) writes:
> I have a small feature request.  I would like to place some sort of tag in
> a PRINT/GPRINT statement that would be replaced with the number of
> seconds/minutes/hours/whatever that a single datapoint on a graph is
> equivalent to.

You can calculate this yourself. For a graph which covers 2000 minutes:

$ trytime -s -2000m -e now
The time now is: Thu Aug 31 10:00:32 2000

Start time was specified as: '-2000m',
for me this means: Wed Aug 30 00:40:32 2000 CEST (or 967588832 sec since

End time was not specified, default value will be used (now)
for me this means: Thu Aug 31 10:00:32 2000 CEST (or 967708832 sec since

=> your graph contains the 967708832-967588832 = 120000 seconds
If your graph is 500 pixel wide you get 120000/500 = 240 seconds per pixel

(in fact you need to know which time is covered by your graph and how
many pixel it contains ...)


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