[rrd-users] Re: [rrd-developers] Re: Strange lockup issue
Tobias Oetiker
oetiker at ee.ethz.ch
Mon Dec 10 16:25:29 MET 2001
Wednesday Bertelson, Tom (CAP, CARD) wrote:
>
> I too had a lockup problem, under Solaris. The problem appeared when the
> end time was greater that the last datapoint in the file. Do the problems
> go away if you decrease the end time?
>
> Here's my fix, along with another that fixes calling the rrd_* routines
> multiple times within a C program. Hope this helps.
>
> --- src/rrd_create.c.orig Thu Feb 22 06:02:47 2001
> +++ src/rrd_create.c Thu Nov 29 12:42:13 2001
> @@ -16,6 +16,8 @@
> struct time_value last_up_tv;
> char *parsetime_error = NULL;
>
> +
> + optind = 0;
> /* init last_up */
> last_up = time(NULL)-10;
> /* init rrd clean */
> --- src/rrd_fetch.c.orig Thu Feb 22 06:02:47 2001
> +++ src/rrd_fetch.c Thu Nov 29 12:41:07 2001
> @@ -31,6 +31,8 @@
> struct time_value start_tv, end_tv;
> char *parsetime_error = NULL;
>
> + optind = 0;
> +
> /* init start and end time */
> parsetime("end-24h", &start_tv);
> parsetime("now", &end_tv);
please note, that the resetting of optind must happen in the
calling program ... check rrd_tool.c or the perl bindings
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