summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a04ffbd)
raw | patch | inline | side by side (parent: a04ffbd)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 6 Nov 2010 13:26:16 +0000 (14:26 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 6 Nov 2010 13:26:16 +0000 (14:26 +0100) |
src/collectd.c | patch | blob | history | |
src/plugin.c | patch | blob | history |
diff --git a/src/collectd.c b/src/collectd.c
index 4f5fac901a8445f6992b225d806a456889fae81b..d33d1d6685ff4755d9ab460a526313b468d6f71d 100644 (file)
--- a/src/collectd.c
+++ b/src/collectd.c
static void *do_flush (void __attribute__((unused)) *arg)
{
INFO ("Flushing all data.");
- plugin_flush (NULL, -1, NULL);
+ plugin_flush (/* plugin = */ NULL,
+ /* timeout = */ 0,
+ /* ident = */ NULL);
INFO ("Finished flushing all data.");
pthread_exit (NULL);
return NULL;
diff --git a/src/plugin.c b/src/plugin.c
index 2e25758e60609e77aa7a3074abc469f8c9bed6e9..f6bc506c5fdd632f21572f92ee4707520d23a008 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
destroy_read_heap ();
- plugin_flush (/* plugin = */ NULL, /* timeout = */ -1,
+ plugin_flush (/* plugin = */ NULL,
+ /* timeout = */ 0,
/* identifier = */ NULL);
le = NULL;