[systemd-devel] [PATCH] ratelimit: fix off-by-one

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Feb 13 06:01:40 PST 2013


On Wed, Feb 13, 2013 at 08:00:46AM +0100, Michael Olbrich wrote:
> The current code might make sense during startup for service restart
> limiting:
> With burst=1 after starting num is 1, so the next ('first') restart is
> still accepted ( 1 <= 1). However, once interval has expired, num is 1
> after the first restart, so the second restart is also accepted.
Applied.

Zbyszek


More information about the systemd-devel mailing list