From f33b3443e3998a23f3a9ecfc158eacd28b2cfcbd Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 1 Jan 2020 16:06:42 +0000 Subject: [PATCH] logs: use single nonmonotonic usec count --- lib/core/logs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/logs.c b/lib/core/logs.c index 4ccbb1e6b..43d40ae91 100644 --- a/lib/core/logs.c +++ b/lib/core/logs.c @@ -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: ",