diff options
author | Thomas Haller <thaller@redhat.com> | 2016-03-01 15:20:31 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-03-01 15:22:59 +0100 |
commit | 4fb8cf35f46d69fe31ec61e86576e5c0ba661d96 (patch) | |
tree | 1948c8e2fdf50e9cac42685925b209205353b8c6 | |
parent | 24582b65e1c9f0a793f2640878b8d80e2a6e805a (diff) |
logging: print timestamp only with msec precision
-rw-r--r-- | src/nm-logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-logging.c b/src/nm-logging.c index 05bb10c707..bb53c7a15f 100644 --- a/src/nm-logging.c +++ b/src/nm-logging.c @@ -535,7 +535,7 @@ _nm_log_impl (const char *file, if (NM_FLAGS_ANY (global.log_format_flags, global.level_desc[level].log_format_level & _LOG_FORMAT_FLAG_TIMESTAMP)) { g_get_current_time (&tv); - nm_sprintf_buf (s_buf_timestamp, " [%ld.%06ld]", tv.tv_sec, tv.tv_usec); + nm_sprintf_buf (s_buf_timestamp, " [%ld.%04ld]", tv.tv_sec, (tv.tv_usec + 50) / 100); } else s_buf_timestamp[0] = '\0'; |