]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: don't make idle action timer accuracy more coarse than timeout
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2023 10:07:08 +0000 (11:07 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Jan 2024 14:29:09 +0000 (23:29 +0900)
commite20bfa5005ab5458837bb62cb35bc1687f25124f
tree5f5fa1269fdfb5dde3daf5486d611bf5e9f94613
parent4855d82348388c85657fc06ba9271a03a8ebb259
logind: don't make idle action timer accuracy more coarse than timeout

If we allow the timer accuracy to grow larger then the timeout itself
things are very confusing, because people might set a 1s time-out and we
turn that into 30s.

Hence, let's just cut off the 30s accuracy to the time-out itself, so
that we stay close to what users configured.
src/login/logind.c