summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-01 07:34:05 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-01 08:34:05 -0400
commitfdb14b7ef40d1f19f3bd7c8fa2a3821c2be87a5e (patch)
tree4d43fd8acaac9510fe0915c63f375a9eb127d93f
parent2b01a801f6c597a60a1e622978bf7ac0105b9666 (diff)
core: limit timestamp to sane precision
Anything below .1 s is meaningless anyway.
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 64c2b3f3a1..1a62e04c80 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1725,7 +1725,7 @@ int main(int argc, char *argv[]) {
after_startup = now(CLOCK_MONOTONIC);
log_full(arg_action == ACTION_TEST ? LOG_INFO : LOG_DEBUG,
"Loaded units and determined initial transaction in %s.",
- format_timespan(timespan, sizeof(timespan), after_startup - before_startup, 0));
+ format_timespan(timespan, sizeof(timespan), after_startup - before_startup, 100 * USEC_PER_MSEC));
if (arg_action == ACTION_TEST) {
printf("-> By jobs:\n");