X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=1a0e4ef06d2fa13dc91cdb7faf315e6874e1d609;hb=a04ffbda508739433df0975328100e33e7986c87;hp=9cf9fe11fb9df4c033df7728ca2d44b92f143bb5;hpb=edd0e2639a241167e213ec301bfc71c7d291ee61;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 9cf9fe11..1a0e4ef0 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -306,8 +306,10 @@ static int wh_write_command (const data_set_t *ds, const value_list_t *vl, /* {{ } command_len = (size_t) ssnprintf (command, sizeof (command), - "PUTVAL %s interval=%i %s\r\n", - key, vl->interval, values); + "PUTVAL %s interval=%.3f %s\r\n", + key, + CDTIME_T_TO_DOUBLE (vl->interval), + values); if (command_len >= sizeof (command)) { ERROR ("write_http plugin: Command buffer too small: " "Need %zu bytes.", command_len + 1);