1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

logs: use single nonmonotonic usec count

This commit is contained in:
Andy Green 2020-01-01 16:06:42 +00:00
parent 2236859188
commit f33b3443e3

View file

@ -88,7 +88,7 @@ lwsl_timestamp(int level, char *p, int len)
for (n = 0; n < LLL_COUNT; n++) {
if (level != (1 << n))
continue;
now = lws_now_usecs() / 100;
if (ptm)
n = lws_snprintf(p, len,
"[%04d/%02d/%02d %02d:%02d:%02d:%04d] %s: ",