Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print startup time on, well, startup.
[doldaconnect.git]
/
daemon
/
main.c
diff --git
a/daemon/main.c
b/daemon/main.c
index
d008468
..
0693a3d
100644
(file)
--- a/
daemon/main.c
+++ b/
daemon/main.c
@@
-385,6
+385,7
@@
int main(int argc, char **argv)
struct child *child;
double now;
struct child *child;
double now;
+ now = ntime();
immsyslog = nofork = 0;
syslogfac = LOG_DAEMON;
configfile = NULL;
immsyslog = nofork = 0;
syslogfac = LOG_DAEMON;
configfile = NULL;
@@
-494,6
+495,7
@@
int main(int argc, char **argv)
fprintf(pfstream, "%i\n", getpid());
fclose(pfstream);
}
fprintf(pfstream, "%i\n", getpid());
fclose(pfstream);
}
+ flog(LOG_INFO, "startup took %f seconds", ntime() - now);
running = 1;
reinit = 0;
while(running)
running = 1;
reinit = 0;
while(running)