summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Akulich <akulichalexander@gmail.com>2016-08-31 16:30:31 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-06 09:22:02 (GMT)
commitb814213ac6cfdcdbfab3986fed15ed4732168e95 (patch)
tree20053637e306899e7ad062011d9b939e4b90957c
parent3989778fafde7fbf8bf2e4b7b439a0b401050187 (diff)
[debugger] Fixed timestamp format (ms width)
Unfixed ms width ("%d") leads to vary digits from 1 to 6. Now the width is statically 6 digits, filled with leading zeros ("%06d") REVIEW: 128809
-rw-r--r--tools/debugger/debug-message-view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/debugger/debug-message-view.cpp b/tools/debugger/debug-message-view.cpp
index b29bc71..af09715 100644
--- a/tools/debugger/debug-message-view.cpp
+++ b/tools/debugger/debug-message-view.cpp
@@ -217,7 +217,7 @@ static inline QString formatTimestamp(double timestamp)
}
QString str;
- str.sprintf("%s.%d", time_str, ms);
+ str.sprintf("%s.%06d", time_str, ms);
return str;
}