mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Fix formatting
This commit is contained in:
parent
442475a78b
commit
22a90a73ef
@ -198,7 +198,11 @@ static void game_mode_apply_scheduler(GameModeContext *self, pid_t client)
|
|||||||
if (getpriority(PRIO_PROCESS, (id_t)client) != 0) {
|
if (getpriority(PRIO_PROCESS, (id_t)client) != 0) {
|
||||||
LOG_ERROR("Client [%d] already reniced, ignoring.\n", client);
|
LOG_ERROR("Client [%d] already reniced, ignoring.\n", client);
|
||||||
} else if (setpriority(PRIO_PROCESS, (id_t)client, (int)renice)) {
|
} else if (setpriority(PRIO_PROCESS, (id_t)client, (int)renice)) {
|
||||||
LOG_ERROR("Renicing client [%d] failed with error %d, ignoring (your user may not have permission to do this).\n", client, errno);
|
LOG_ERROR(
|
||||||
|
"Renicing client [%d] failed with error %d, ignoring (your user may not have "
|
||||||
|
"permission to do this).\n",
|
||||||
|
client,
|
||||||
|
errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -221,9 +225,11 @@ static void game_mode_apply_scheduler(GameModeContext *self, pid_t client)
|
|||||||
if (!(strcmp(softrealtime, "off") == 0) && (enable_softrealtime)) {
|
if (!(strcmp(softrealtime, "off") == 0) && (enable_softrealtime)) {
|
||||||
const struct sched_param p = { .sched_priority = 0 };
|
const struct sched_param p = { .sched_priority = 0 };
|
||||||
if (sched_setscheduler(client, SCHED_ISO, &p)) {
|
if (sched_setscheduler(client, SCHED_ISO, &p)) {
|
||||||
LOG_ERROR("Setting client [%d] to SCHED_ISO failed with error %d, ignoring (your kernel may not support this).\n",
|
LOG_ERROR(
|
||||||
client,
|
"Setting client [%d] to SCHED_ISO failed with error %d, ignoring (your "
|
||||||
errno);
|
"kernel may not support this).\n",
|
||||||
|
client,
|
||||||
|
errno);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG_ERROR("Not using softrealtime, setting is '%s'.\n", softrealtime);
|
LOG_ERROR("Not using softrealtime, setting is '%s'.\n", softrealtime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user