Code

FLUSH cmd: convert timeout (double) to cdtime_t
authorManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Thu, 19 Jun 2014 17:51:28 +0000 (19:51 +0200)
committerManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Thu, 19 Jun 2014 17:51:28 +0000 (19:51 +0200)
  as the previous call to plugin_flush

src/utils_cmd_flush.c

index 3584f3b71a3c82bd73ec85cd55201422f8a8e1f8..d71074a557b0341f4e5e23af71abea5b56a8d7f3 100644 (file)
@@ -168,7 +168,7 @@ int handle_flush (FILE *fh, char *buffer)
        }
        else
        {
-               plugin_flush (NULL, timeout, NULL);
+               plugin_flush (NULL, DOUBLE_TO_CDTIME_T (timeout), NULL);
                print_to_socket (fh, "0 Done\n");
        }