[rrd-developers] Re: rrdcgi bug: can't eval multiple <RRD::CV> tags on one line or somesuch

Tobias Oetiker oetiker at ee.ethz.ch
Wed Nov 3 00:23:21 MET 1999


Monday you sent me mail regarding [rrd-developers] rrdcgi bug: can't eval...:

*> 
*> Fwiw, I went about creating an interactive rrdtool cgi script
*> for nrg recently and found that the last line of this rrdcgi code
*> 
*>   <RRD::GRAPH <RRD::CV::PATH RRD_NAME>.gif
*>     --title "Graph for <RRD::CV::PATH RRD_NAME>: <RRD::CV NUM> <RRD::CV UNITS>"
*>     --start -<RRD::CV NUM><RRD::CV UNITS>
*> 
*> causes a 
*> 
*>   [ERROR: unknown function 'UNITS']
*> 
*> bitch msg.  Isn't this a bug?  (I expect the last line to
*> evaluate to strings like "--start -1weeks" etc.)
*> 
*> It's no big deal for me: I'm gunna rewrite the whole thing
*> in perl because there's no way to retain CGI variables gotten
*> from the <SELECT> tag (html's poor excuse for listbox widget)
*> via rrdcgi.

try changeing the last line of the parse function ...

to

  return valln > 0 ? valln-1: valln;

cheers
tobi
*> 
*> later
*> steve
*> - - -
*> systems guy
*> wiscnet.net
*> 
*> --
*> * To unsubscribe from the rrd-developers mailing list, send a message with the
*>   subject: unsubscribe to rrd-developers-request at list.ee.ethz.ch
*> 
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the rrd-developers mailing list, send a message with the
  subject: unsubscribe to rrd-developers-request at list.ee.ethz.ch



More information about the rrd-developers mailing list