From b237b9c82d1bac32be09e3ab4e3defee88d271f9 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 20 Nov 2019 13:33:22 -0500 Subject: Format milliseconds as int I don't know what I was thinking. I'm expecting a number less than 1000 of course that fits in int. --- client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 2dcccaa..814c5ea 100644 --- a/client.c +++ b/client.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -420,8 +419,8 @@ void clientConsume(struct Client *client) { struct tm *tm = gmtime(&time.tv_sec); strftime(ts, sizeof(ts), "%FT%T", tm); clientFormat( - client, "@time=%s.%03jdZ %s\r\n", - ts, (intmax_t)(time.tv_usec / 1000), line + client, "@time=%s.%03dZ %s\r\n", + ts, (int)(time.tv_usec / 1000), line ); } else { clientFormat(client, "%s\r\n", line); -- cgit 1.4.1