diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-04-01 13:50:20 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-04-01 13:50:20 +0200 |
commit | 3ccaba6c11eee4151cd0885668fd9c043f5d7e56 (patch) | |
tree | e865bbf87a0a734f0059ff3de50e735ef378793c /vespalog/src | |
parent | a0ad798b59039d0905147ca66881f1e95fb443eb (diff) |
Fix timestamp formatting in LLParser::makeMessage.
Diffstat (limited to 'vespalog/src')
-rw-r--r-- | vespalog/src/vespa/log/llparser.cpp | 2 |
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; |