Hi,
On Thu, Oct 16, 2008 at 06:30:47AM +0000, kevin brintnall wrote:
> --- a/src/rrd_client.c
> +++ b/src/rrd_client.c
> @@ -615,14 +615,7 @@ int rrdc_flush_if_daemon (const char *opt_daemon, const
> char *filename) /* {{{ *
> rrdc_connect(opt_daemon);
>
> if (rrdc_is_connected(opt_daemon))
> - {
> status = rrdc_flush (filename);
> - if (status != 0)
> - {
> - rrd_set_error ("rrdc_flush (%s) failed with status %i.",
> - filename, status);
> - }
> - } /* if (rrdc_is_connected(..)) */
>
> return status;
> } /* }}} int rrdc_flush_if_daemon */
How about something like this (just to make sure there is a fallback):
rrd_clear_error();
status = rrdc_flush(filename);
if ((status != 0) && (! rrd_test_error()))
rrd_set_error(...);
Cheers,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
signature.asc
Description: Digital signature
_______________________________________________ rrd-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
