]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald, ratelimit: fix inaccurate message suppression in journal_rate_limit_test...
authorYuki Inoguchi <inoguchi.yuki@jp.fujitsu.com>
Thu, 6 Oct 2016 09:44:51 +0000 (18:44 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 6 Oct 2016 09:44:51 +0000 (11:44 +0200)
commitd2665e0866772663ad7c774c05bf2e0dc8ddcb04
tree5421321e3c65b819d8d64c7995aba245bbd39410
parent100a5f579db3fd9aa4418225f0928b99ecee3807
journald, ratelimit: fix inaccurate message suppression in journal_rate_limit_test() (#4291)

Currently, the ratelimit does not handle the number of suppressed messages accurately.
Even though the number of messages reaches the limit, it still allows to add one extra messages to journal.

This patch fixes the problem.
src/journal/journald-rate-limit.c