From eaafb3bc7f46d493a675a89584758f63224098f2 Mon Sep 17 00:00:00 2001 From: Lee Date: Wed, 8 Jul 2009 23:18:05 +0000 Subject: [PATCH] don't need the extra time() call --- errlog.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/errlog.c b/errlog.c index 1389fedc..2455d237 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.96 2009/05/28 21:13:34 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.97 2009/06/14 15:59:56 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -422,8 +422,7 @@ static inline size_t get_log_timestamp(char *buffer, size_t buffer_size) gettimeofday(&tv_now, NULL); msecs = tv_now.tv_usec / 1000; - - time(&now); + now = tv_now.tv_sec; #ifdef HAVE_LOCALTIME_R tm_now = *localtime_r(&now, &tm_now); -- 2.39.2