[dovecot-cvs] dovecot/src/lib failures.c,1.20,1.21

cras at procontrol.fi cras at procontrol.fi
Wed Jun 4 11:53:19 EEST 2003


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv24757

Modified Files:
	failures.c 
Log Message:
Log using current time, not ioloop_time.



Index: failures.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/failures.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- failures.c	10 Apr 2003 21:19:56 -0000	1.20
+++ failures.c	4 Jun 2003 07:53:17 -0000	1.21
@@ -25,7 +25,6 @@
 
 
 #include "lib.h"
-#include "ioloop.h"
 #include "fd-close-on-exec.h"
 #include "printf-upper-bound.h"
 
@@ -68,12 +67,14 @@
 {
 	struct tm *tm;
 	char str[256];
+	time_t now;
 
 	if (log_prefix != NULL)
 		fputs(log_prefix, f);
 
 	if (log_stamp_format != NULL) {
-		tm = localtime(&ioloop_time);
+		now = time(NULL);
+		tm = localtime(&now);
 
 		if (strftime(str, sizeof(str),
 			     get_log_stamp_format("unused"), tm) > 0)



More information about the dovecot-cvs mailing list