From: Daan De Meyer Date: Sat, 7 Mar 2026 22:04:38 +0000 (+0100) Subject: dbus-cgroup: Fix copy paste error X-Git-Tag: v260-rc3~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f5cecd7de511968ab170ef6656f9851ea2b64c4;p=thirdparty%2Fsystemd.git dbus-cgroup: Fix copy paste error Let's set the appropriate field for ManagedOOMMemoryPressureDurationUSec= and not a totally different one. --- diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index 0c71017f93a..a7508c96daa 100644 --- a/src/core/dbus-cgroup.c +++ b/src/core/dbus-cgroup.c @@ -1721,13 +1721,13 @@ int bus_cgroup_set_property( FORMAT_TIMESPAN(t, USEC_PER_SEC)); if (!UNIT_WRITE_FLAGS_NOOP(flags)) { - c->memory_pressure_threshold_usec = t; - if (c->memory_pressure_threshold_usec == USEC_INFINITY) + c->moom_mem_pressure_duration_usec = t; + if (c->moom_mem_pressure_duration_usec == USEC_INFINITY) unit_write_setting(u, flags, name, "ManagedOOMMemoryPressureDurationSec="); else unit_write_settingf(u, flags, name, "ManagedOOMMemoryPressureDurationSec=%s", - FORMAT_TIMESPAN(c->memory_pressure_threshold_usec, 1)); + FORMAT_TIMESPAN(c->moom_mem_pressure_duration_usec, 1)); } if (c->moom_mem_pressure == MANAGED_OOM_KILL)