]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
stats: Work around shrinking system CPU usage
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 5 May 2016 18:23:17 +0000 (21:23 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 10 May 2016 21:22:36 +0000 (17:22 -0400)
commitc8d8cb57937a065090d6e0bfe96425de79f69244
treeb1a5f78cdc60de83f636b9fe089df28a8695463e
parent37f0b04489ab73227ae28678d6f15067adea1a94
stats: Work around shrinking system CPU usage

Happening at least in Debian's Linux kernel 4.3.0-1-amd64.

getrusage() may returns ru_stime = 4000 or 8000, but later it drops to 0.
We'll just work around this by switching to the previous working ru_stime.

This fixes errors like:
Error: stats: session stats shrank: sys_cpu 0.0 < 0.4000
src/plugins/stats/mail-stats-fill.c