]> git.ipfire.org Git - thirdparty/systemd.git/commit
oomd: Refactor DefaultMemoryPressureDurationSec= to use conf parser
authorRyan Wilson <ryantimwilson@meta.com>
Wed, 16 Oct 2024 17:40:30 +0000 (10:40 -0700)
committerRyan Wilson <ryantimwilson@meta.com>
Thu, 17 Oct 2024 03:05:48 +0000 (20:05 -0700)
commitc43ef2e8836a497cedc3a06e6f0aebe484bf688a
tree8f1c10885bb944ecea69052db7069a7ad0a8b979
parentcadb074b9c16bc8cad5208885b43247922d98a66
oomd: Refactor DefaultMemoryPressureDurationSec= to use conf parser

Parsing DefaultMemoryPressureDurationSec= is currently split between
conf parser, main() and manager_start() methods. This commit centralizes
parsing and bounds checking logic within a single custom conf parser
function.
src/oom/oomd-manager.c
src/oom/oomd.c