From 2559e0776f70ab4a97e0edc08f5528ef221d86a3 Mon Sep 17 00:00:00 2001 From: fredrik Date: Thu, 12 Apr 2007 23:09:39 +0000 Subject: [PATCH] Print startup time on, well, startup. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@925 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/main.c b/daemon/main.c index d008468..0693a3d 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -385,6 +385,7 @@ int main(int argc, char **argv) struct child *child; double now; + now = ntime(); 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); } + flog(LOG_INFO, "startup took %f seconds", ntime() - now); running = 1; reinit = 0; while(running) -- 2.11.0