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;