RE: [cricket-users] ugrading to cricket ver 0.71

From: shanman@shanman.net
Date: Mon Jan 10 2000 - 17:01:54 PST


From: shanman@shanman.net

I think the overall y-min and y-max was designed to be as follows:

If there isn't a y-min or y-max defined for any of your items to be
graphed, it leaves it up to RRD to calculate.

If you have defined a y-min or y-max, it tries to find the lowest y-min
and the biggest y-max in your configuration for the datasets that your
current view asks for.

So, your fix is most likely correct. Because, if you set a y-min to 0 or
y-max to 0, it would end up auto-negotiating the content, or filtering out
the 0 from the negotiation of min/max's.

Shannon

On Mon, 10 Jan 2000, Honermann Tom A. wrote:

> From: "Honermann Tom A." <TA.Honermann@hosp.wisc.edu>
>
> I do have another fix. setting y-min=0 does not work correctly (or
> y-max=0). I found this elluded to in previous cricket-user emails. (see
> http://www.onelist.com/messages/cricket-users?archive=84 message 3 and
> http://www.onelist.com/messages/cricket-users?archive=199 message 1). The
> first link makes reference to a patch that apparently never actually made it
> into the cricket distribution. (Or I'm mis-reading the message. The patch
> is not included with the message - I'm assuming onelist drops the
> attachments?)
>
> I haven't researched the fix completely yet, but I believe that this will
> fix it:
> At line 1222 change:
> if ($ymax) {
> to:
> if (defined($ymax)) {
> At line 1228 change:
> if ($ymin) {
> to:
> if(defined($ymin)) {
>
> The problem is that this if fails (currently) if y-min (or y-max for that
> matter) is set to 0. I don't believe that this is the desired behavior.
>
> > -----Original Message-----
> > From: Jeff Allen [SMTP:jra@corp.webtv.net]
> > Sent: Monday, January 10, 2000 3:43 PM
> > To: Honermann Tom A.
> > Cc: 'shanman@shanman.net'; 'cricket-users@onelist.com'
> > Subject: RE: [cricket-users] ugrading to cricket ver 0.71
> >
> > From: Jeff Allen <jra@corp.webtv.net>
> >
> > Honermann Tom A. wrote:
> > > I'm willing to bet that that line should be changed to:
> > > my($vname, $dss) = split(/\s*:\s*/, $v, 2);
> > > I suspect it was a typo that the \s* was typed \*.
> >
> > Yes, this is the correct fix. I have added it to my version, and I
> > expect to be putting out a new Cricket in the next day or so with this
> > fix and maybe some others, if you guys find things that need to be
> > fixed.
> >
> > --
> > Jeff R. Allen | jra@corp.webtv.net
> > WebTV Service Engineering | http://www.munitions.com/~jra
> >
> > --------------------------- 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>
> >
> > ------------------------------------------------------------------------
>
> --------------------------- 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>
>
> ------------------------------------------------------------------------
>

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

Independent contractors: Find your next project gig through JobSwarm!
        You can even make money by referring friends.
<a href=" http://clickme.onelist.com/ad/jobswarm2 ">Click Here</a>

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



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