1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-20 18:04:03 +03:00

shared/condition: add missing space after 'if'

Follow-up for 98b1ecc9175a8bb241292f6f441a754b6759dd97
This commit is contained in:
Mike Yuan 2024-07-01 19:13:58 +02:00
parent 71c404f9cf
commit 0ee63608bc
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View 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);