소스 검색

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

Marc Di Luzio 6 년 전
부모
커밋
5b55506050
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      daemon/gamemode-sched.c

+ 2 - 1
daemon/gamemode-sched.c

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