pack_gelf: make time precision explicit(#3727)
@@ -762,7 +762,8 @@ flb_sds_t flb_msgpack_to_gelf(flb_sds_t *s, msgpack_object *o,
}
*s = tmp;
- tmp = flb_sds_printf(s, "%" PRIu32".%lu",
+ /* gelf supports milliseconds */
+ tmp = flb_sds_printf(s, "%" PRIu32".%03lu",
tm->tm.tv_sec, tm->tm.tv_nsec / 1000000);
if (tmp == NULL) {
return NULL;
