mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Correct double invalid in error message, and actually skip out on the renice
This commit is contained in:
parent
0df479537e
commit
5b55506050
@ -69,7 +69,8 @@ void game_mode_apply_renice(const GameModeContext *self, const pid_t client)
|
||||
long int renice = 0;
|
||||
config_get_renice_value(config, &renice);
|
||||
if ((renice < 1) || (renice > 20)) {
|
||||
LOG_ONCE(ERROR, "Invalid renice value '%ld' is invalid, will not renice.\n", renice);
|
||||
LOG_ONCE(ERROR, "Configured renice value '%ld' is invalid, will not renice.\n", renice);
|
||||
return;
|
||||
} else {
|
||||
renice = -renice;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user