summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vespalog/src/vespa/log/llparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalog/src/vespa/log/llparser.cpp b/vespalog/src/vespa/log/llparser.cpp
index 5e48343dfaf..8e44f36c7ae 100644
--- a/vespalog/src/vespa/log/llparser.cpp
+++ b/vespalog/src/vespa/log/llparser.cpp
@@ -332,7 +332,7 @@ LLParser::makeMessage(const char *tmf, const char *hsf, const char *pdf,
if (tmf[0] == '\0') {
struct timeval tv;
gettimeofday(&tv, NULL);
- snprintf(tmbuffer, 24, "%u.%u",
+ snprintf(tmbuffer, 24, "%u.%06u",
static_cast<unsigned int>(tv.tv_sec),
static_cast<unsigned int>(tv.tv_usec));
tmf = tmbuffer;