Re: [cricket-users] Graphing Real values.

From: Matt Zimmerman (mdz@csh.rit.edu)
Date: Tue Jan 11 2000 - 08:40:55 PST


From: Matt Zimmerman <mdz@csh.rit.edu>

On Tue, Jan 11, 2000 at 09:54:43AM -0000, Grimshaw Stuart wrote:

> No, a GAUGE would give me the total number of pages, unfortunatly the
> counter doesn't reset after it's been read. What I want is the number of
> pages printed in the time period. If I use COUNTER, it should give me
> what I want, but I keep getting fugures like 1.89 pages, 2.31 pages.
> This means it cant be a problem of scale, because I havn't printed 189
> or 231 pages :)

Ah, _during the time period_ was the key. In that case, I don't think
there is a predefined RRD datasource type to do what you want. The ones
that calculate differences (COUNTER, DERIVE) also convert them to a rate
with respect to time.

A quick and dirty hack would be to go ahead and use COUNTER, but scale the
resulting graph by the collection interval (in seconds).

-- 
 - mdz

--------------------------- ONElist Sponsor ----------------------------

Hey Freelancers: Find your next project through JobSwarm! You can even make money in your sleep by referring friends. <a href=" http://clickme.onelist.com/ad/jobswarm1 ">Click Here</a>

------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:10 PST