Code

src/utils_cmd_flush.c: Fix parsing of the "timeout" option.
[collectd.git] / src / plugin.c
index 2e25758e60609e77aa7a3074abc469f8c9bed6e9..f6bc506c5fdd632f21572f92ee4707520d23a008 100644 (file)
@@ -1290,7 +1290,8 @@ void plugin_shutdown_all (void)
 
        destroy_read_heap ();
 
-       plugin_flush (/* plugin = */ NULL, /* timeout = */ -1,
+       plugin_flush (/* plugin = */ NULL,
+                       /* timeout = */ 0,
                        /* identifier = */ NULL);
 
        le = NULL;