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 lass='sub right'>
about summary refs log tree commit diff
Commit message (Expand)Author
2013-05-18cache.c: fix cache_lsJohn Keeping
2013-05-13t0109: "function" is a bash-ismJohn Keeping
2013-05-13New mailing list.Jason A. Donenfeld
2013-04-30ui-snapshot: do not access $HOMEJason A. Donenfeld
2013-04-27t0001: validate Git -rcN version numbers correctlyJohn Keeping
2013-04-27git: update to 1.8.2.2John Keeping
2013-04-17scan-tree: fix regression in section-from-path=-1John Keeping
2013-04-15t0001: ignore ".dirty" suffix on Git versionJohn Keeping
2013-04-15tests: set TEST_OUTPUT_DIRECTORY to the CGit test directoryJohn Keeping
2013-04-15t0109: test more URLsJohn Keeping
2013-04-10cgitrc.5.txt: Specify when scan-path must be defined before.Jason A. Donenfeld
2013-04-10ui-snapshot.c: Prepend "V" when guessing ref namesLukas Fleischer
2013-04-10t0107: Skip ZIP tests if unzip(1) isn't availableLukas Fleischer
2013-04-10tests/: Do not use `sed -i`Lukas Fleischer
2013-04-10Add branch-sort and repo.branch-sort options.Jason A. Donenfeld
2013-04-10t0109: chain operations with &&John Keeping
2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer
2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer