From e1ab3f28d6fdd5118049d7a4ebc8f576d63b15a2 Mon Sep 17 00:00:00 2001 From: Asger Gitz-Johansen Date: Wed, 18 Sep 2024 19:46:27 +0200 Subject: [PATCH] fix: log timestamps are now updated --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index e48c3a9..0a8145a 100644 --- a/src/log.c +++ b/src/log.c @@ -78,6 +78,7 @@ void log_log(const char* file, int line, int level, const char* fmt, ...) { g_log_tm = localtime(&t); } strftime(timestamp, sizeof(timestamp), "%H:%M:%S", g_log_tm); + g_log_tm = NULL; const char* level_color = get_level_color(level); const char* level_name = get_level_name(level);