[rrd-users] Re: [rrd-developers] Re: Re: rrd_graph and once more calling
Tobias Oetiker
oetiker at ee.ethz.ch
Fri Nov 16 19:36:27 MET 2001
Nov 10 Torleiv Ringer wrote:
>
> Using the following patch, your program (and mine) now works:
>
> ###################################### begin patch
> --- rrdtool-1.0.33/src/rrd_graph.c Thu Feb 22 04:02:47 2001
> +++ rrdtool-1.0.33.patch/src/rrd_graph.c Sat Nov 10 14:53:01 2001
> @@ -2799,6 +2799,8 @@
> char *parsetime_error = NULL;
> int stroff;
>
> + optind = 1; /* reset so that we can loop and re-parse options */
> +
> (*prdata)=NULL;
>
> parsetime("end-24h", &start_tv);
> ###################################### end patch
Please note that you must reset optind in the calling program ...
check out rrd_tool.c or rrd_cgi.c for inspiration
cheers
tobi
--
______ __ _
/_ __/_ / / (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland
/ // _ \/ _ \/ / phoneto:+41(0)1-632-5286 faxto:+41(0)1-632-1517
/_/ \.__/_.__/_/ mailto:oetiker at ee.ethz.ch http://people.ee.ethz.ch/~oetiker
--
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