kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit a2d48feeb7e279d0e84068e1d7195b85eba4137a
parent 41511c16836953ed50443da3c308582b07009882
Author: Joris Vink <joris@coders.se>
Date:   Tue, 14 Sep 2021 09:36:33 +0200

Lets make sure milliseconds are formatted nicely.

Diffstat:
src/log.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/log.c b/src/log.c @@ -150,7 +150,7 @@ log_print(int prio, const char *fmt, ...) t = gmtime(&ts.tv_sec); if (strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M:%S", t) > 0) - fprintf(fp, "%s.%ld UTC ", tbuf, ts.tv_nsec / 1000000); + fprintf(fp, "%s.%03ld UTC ", tbuf, ts.tv_nsec / 1000000); vfprintf(fp, fmt, args); fflush(fp);