]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats plugin: Fixed updating clock_time
authorTimo Sirainen <tss@iki.fi>
Wed, 15 Jan 2014 20:57:50 +0000 (15:57 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 15 Jan 2014 20:57:50 +0000 (15:57 -0500)
src/plugins/stats/stats-plugin.c

index 4345a971c5c92296d2091e724b002c9e97eb8c2a..d9890c9f43846e4b19b9834e2286211c17b1881c 100644 (file)
@@ -211,6 +211,8 @@ static void stats_io_activate(void *context)
                   it to NULL. when we get back to one user we'll need to set
                   the global user again somewhere. do it here. */
                stats_global_user = user;
+               /* skip time spent waiting in ioloop */
+               suser->pre_io_stats.clock_time = ioloop_timeval;
        } else {
                i_assert(stats_global_user == NULL);