mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
shared/condition: add missing space after 'if'
Follow-up for 98b1ecc917
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user