]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/condition: add missing space after 'if' 33560/head
authorMike Yuan <me@yhndnzj.com>
Mon, 1 Jul 2024 17:13:58 +0000 (19:13 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 1 Jul 2024 17:14:22 +0000 (19:14 +0200)
Follow-up for 98b1ecc9175a8bb241292f6f441a754b6759dd97

src/shared/condition.c

index 1f72ba8b0f2781a332747e1c9e76a4ff7b77d229..2e231dfdff5b8275c88a0dbe017b3638c641c95b 100644 (file)
@@ -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);