Correct double invalid in error message, and actually skip out on the renice

This commit is contained in:
Marc Di Luzio 2019-02-03 15:05:53 +00:00
parent 0df479537e
commit 5b55506050

View File

@ -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;
}