Fix several typos and fix bh_log calculate mills (#3441)

This commit is contained in:
TianlongLiang
2024-05-20 15:54:01 +08:00
committed by GitHub
parent 0ceffe74a7
commit 30ed97cddc
3 changed files with 7 additions and 8 deletions

View File

@ -38,7 +38,7 @@ bh_log(LogLevel log_level, const char *file, int line, const char *fmt, ...)
t = t % (60 * 60);
m = t / 60;
s = t % 60;
mills = (uint32)(usec % 1000);
mills = (uint32)((usec % 1000000) / 1000);
snprintf(buf, sizeof(buf),
"%02" PRIu32 ":%02" PRIu32 ":%02" PRIu32 ":%03" PRIu32, h, m, s,