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:
9f39404
)
main: show load profiling in test mode, too
author
Lennart Poettering
<lennart@poettering.net>
Sun, 31 Jul 2011 16:13:59 +0000
(18:13 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 31 Jul 2011 16:13:59 +0000
(18:13 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index 40d03ca792bff5ead95587a219d040f299e063bc..32ccf0bd5c92039f900934347c5dfda0da6088bd 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1306,6
+1306,11
@@
int main(int argc, char *argv[]) {
goto finish;
}
goto finish;
}
+ 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));
+
if (arg_action == ACTION_TEST) {
printf("-> By jobs:\n");
manager_dump_jobs(m, stdout, "\t");
if (arg_action == ACTION_TEST) {
printf("-> By jobs:\n");
manager_dump_jobs(m, stdout, "\t");
@@
-1314,10
+1319,6
@@
int main(int argc, char *argv[]) {
}
}
}
}
- after_startup = now(CLOCK_MONOTONIC);
- log_debug("Loaded units and determined initial transaction in %s.",
- format_timespan(timespan, sizeof(timespan), after_startup - before_startup));
-
for (;;) {
if ((r = manager_loop(m)) < 0) {
log_error("Failed to run mainloop: %s", strerror(-r));
for (;;) {
if ((r = manager_loop(m)) < 0) {
log_error("Failed to run mainloop: %s", strerror(-r));