Hi Florian,

Saturday Florian Forster wrote:

> From: Florian Forster <[email protected]>
>
> -
> -            if ((rrd_fetch_fn(im->gdes[i].rrd,
> -                              im->gdes[i].cf,
> -                              &im->gdes[i].start,
> -                              &im->gdes[i].end,
> -                              &ft_step,
> -                              &im->gdes[i].ds_cnt,
> -                              &im->gdes[i].ds_namv,
> -                              &im->gdes[i].data)) == -1) {
> -                return -1;
> +                 int status;
> +
> +                 status = rrdc_fetch (im->gdes[i].rrd,
> +                                 im->gdes[i].cf,
> +                                 &im->gdes[i].start,
> +                                 &im->gdes[i].end,
> +                                 &ft_step,
> +                                 &im->gdes[i].ds_cnt,
> +                                 &im->gdes[i].ds_namv,
> +                                 &im->gdes[i].data);
> +                 if (status != 0)
> +                         return (status);
>              }
> +         else
> +         {
> +                 int status;
> +
> +                 status = rrd_fetch_fn (im->gdes[i].rrd,
> +                                 im->gdes[i].cf,
> +                                 &im->gdes[i].start,
> +                                 &im->gdes[i].end,
> +                                 &ft_step,
> +                                 &im->gdes[i].ds_cnt,
> +                                 &im->gdes[i].ds_namv,
> +                                 &im->gdes[i].data);
> +                 if (status != 0)
> +                         return (status);
> +         }

what is the idea behinde implementing remote access in graph
explicity instead of just telling fetch about it and having it
handle this transparently ?

cheers
tobi


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to