dovecot-2.2: log: Minor cleanup: Update ioloop_timeval whenever ...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 7 16:15:04 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/2f15ae9bc1b3
changeset: 18228:2f15ae9bc1b3
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 07 18:14:53 2015 +0200
description:
log: Minor cleanup: Update ioloop_timeval whenever reading input from log client.
diffstat:
src/log/log-connection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 3ae5d3a2a7d7 -r 2f15ae9bc1b3 src/log/log-connection.c
--- a/src/log/log-connection.c Fri Feb 06 19:03:20 2015 +0200
+++ b/src/log/log-connection.c Sat Feb 07 18:14:53 2015 +0200
@@ -296,8 +296,8 @@
while ((ret = i_stream_read(log->input)) > 0 || ret == -2) {
/* get new timestamps for every read() */
- if (gettimeofday(&now, NULL) < 0)
- i_panic("gettimeofday() failed: %m");
+ io_loop_time_refresh();
+ now = ioloop_timeval;
tm = *localtime(&now.tv_sec);
while ((line = i_stream_next_line(log->input)) != NULL)
More information about the dovecot-cvs
mailing list