From: fredrik Date: Thu, 12 Apr 2007 23:09:39 +0000 (+0000) Subject: Print startup time on, well, startup. X-Git-Tag: 0.3~12 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=2559e0776f70ab4a97e0edc08f5528ef221d86a3 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 --- 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)