Skip to content

Commit 32fcaba

Browse files
committed
debug: fix snprintf ms zero padding
(the commit e508fec just a moment before) without the leading zero before '3' was print as `<sec>. 1` (leading spaces, not '0')
1 parent 2e5fcb2 commit 32fcaba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ inline void Log_output::submit(){
252252
{
253253
std::timespec ts{};
254254
std::timespec_get(&ts, TIME_UTC);
255-
snprintf(ts_str, ts_bufsize, "[%lld.%3d] ",
255+
snprintf(ts_str, ts_bufsize, "[%lld.%03d] ",
256256
(long long) ts.tv_sec,
257257
(int) (ts.tv_nsec / 1000 / 1000));
258258
}

0 commit comments

Comments
 (0)