chiark / gitweb /
core: limit timestamp to sane precision
[elogind.git] / src / core / main.c
index 64c2b3f3a143d4248522bb2339689d28e77d1474..1a62e04c80716ffd22bf6f13750e6d043e651170 100644 (file)
@@ -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");