mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Don't log an error about a default initial renice value
This commit is contained in:
@ -48,11 +48,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#define SCHED_ISO 4
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Priority to renice the process to.
|
||||
*/
|
||||
#define NICE_DEFAULT_PRIORITY -4
|
||||
|
||||
/**
|
||||
* Apply scheduling policies
|
||||
*
|
||||
@ -74,11 +69,7 @@ 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' reset to default: %d.\n",
|
||||
renice,
|
||||
-NICE_DEFAULT_PRIORITY);
|
||||
renice = NICE_DEFAULT_PRIORITY;
|
||||
LOG_ONCE(ERROR, "Invalid renice value '%ld' is invalid, will not renice.\n", renice);
|
||||
} else {
|
||||
renice = -renice;
|
||||
}
|
||||
|
Reference in New Issue
Block a user