summaryrefslogtreecommitdiffstats
path: root/src/shared/condition.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-07-01 19:13:58 +0200
committerMike Yuan <me@yhndnzj.com>2024-07-01 19:14:22 +0200
commit0ee63608bcd517d763beccf64d686c277dc18756 (patch)
tree1574e37e496f9113dae0bb5949129d72c3767b9d /src/shared/condition.c
parentshared/mount-util: return early if param is NULL (diff)
downloadsystemd-0ee63608bcd517d763beccf64d686c277dc18756.tar.xz
systemd-0ee63608bcd517d763beccf64d686c277dc18756.zip
shared/condition: add missing space after 'if'
Follow-up for 98b1ecc9175a8bb241292f6f441a754b6759dd97
Diffstat (limited to 'src/shared/condition.c')
-rw-r--r--src/shared/condition.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/condition.c b/src/shared/condition.c
index 1f72ba8b0f..2e231dfdff 100644
--- a/src/shared/condition.c
+++ b/src/shared/condition.c
@@ -1008,8 +1008,8 @@ static int condition_test_psi(Condition *c, char **env) {
const char *p, *value, *pressure_type;
loadavg_t *current, limit;
ResourcePressure pressure;
- int r;
PressureType preferred_pressure_type = PRESSURE_TYPE_FULL;
+ int r;
assert(c);
assert(c->parameter);
@@ -1031,7 +1031,7 @@ static int condition_test_psi(Condition *c, char **env) {
/* If only one parameter is passed, then we look at the global system pressure rather than a specific cgroup. */
if (r == 1) {
/* cpu.pressure 'full' is reported but undefined at system level */
- if(c->type == CONDITION_CPU_PRESSURE)
+ if (c->type == CONDITION_CPU_PRESSURE)
preferred_pressure_type = PRESSURE_TYPE_SOME;
pressure_path = path_join("/proc/pressure", pressure_type);