chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b01a80
)
core: limit timestamp to sane precision
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 1 Oct 2014 12:34:05 +0000
(07:34 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 1 Oct 2014 12:34:05 +0000
(08:34 -0400)
Anything below .1 s is meaningless anyway.
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index 64c2b3f3a143d4248522bb2339689d28e77d1474..1a62e04c80716ffd22bf6f13750e6d043e651170 100644
(file)
--- 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");