X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=daemon.c;h=05002f4eff228e0200d5d6cdce9be0c697ed3bc3;hp=7f71017540455d716574ce831cf6b02773b5e71a;hb=7ebb3ef8d2280c19e741b97627bfcf894c7e3117;hpb=8f3b85e2d1bd2b65153014a9c017b12efb28c5a1 diff --git a/daemon.c b/daemon.c index 7f710175..05002f4e 100644 --- a/daemon.c +++ b/daemon.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2012 Andre Noll + * Copyright (C) 1997-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -10,7 +10,6 @@ #include #include /* getgrnam() */ #include -#include #include #include "para.h" @@ -374,7 +373,7 @@ __printf_2_3 void daemon_log(int ll, const char* fmt,...) fprintf(fp, "%s", color); if (log_time || log_timing) { struct timeval tv; - gettimeofday(&tv, NULL); + clock_get_realtime(&tv); if (daemon_test_flag(DF_LOG_TIME)) { /* print date and time */ time_t t1 = tv.tv_sec; char str[100];