mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Fix reaper_frequency naming
This commit is contained in:
parent
b7dff4265c
commit
d5ffdcffdb
@ -438,7 +438,7 @@ bool config_get_client_blacklisted(GameModeConfig *self, const char *client)
|
|||||||
/*
|
/*
|
||||||
* Gets the reaper frequency
|
* Gets the reaper frequency
|
||||||
*/
|
*/
|
||||||
long config_get_reaper_thread_frequency(GameModeConfig *self)
|
long config_get_reaper_frequency(GameModeConfig *self)
|
||||||
{
|
{
|
||||||
long value = 0;
|
long value = 0;
|
||||||
memcpy_locked_config(self, &value, &self->reaper_frequency, sizeof(long));
|
memcpy_locked_config(self, &value, &self->reaper_frequency, sizeof(long));
|
||||||
|
@ -87,7 +87,7 @@ bool config_get_client_blacklisted(GameModeConfig *self, const char *client);
|
|||||||
/*
|
/*
|
||||||
* Get the frequency (in seconds) for the reaper thread
|
* Get the frequency (in seconds) for the reaper thread
|
||||||
*/
|
*/
|
||||||
long config_get_reaper_thread_frequency(GameModeConfig *self);
|
long config_get_reaper_frequency(GameModeConfig *self);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get whether we want to inhibit the screensaver (defaults to true)
|
* Get whether we want to inhibit the screensaver (defaults to true)
|
||||||
|
@ -549,7 +549,7 @@ static void *game_mode_context_reaper(void *userdata)
|
|||||||
/* Stack, not allocated, won't disappear. */
|
/* Stack, not allocated, won't disappear. */
|
||||||
GameModeContext *self = userdata;
|
GameModeContext *self = userdata;
|
||||||
|
|
||||||
long reaper_interval = config_get_reaper_thread_frequency(self->config);
|
long reaper_interval = config_get_reaper_frequency(self->config);
|
||||||
|
|
||||||
struct timespec ts = { 0, 0 };
|
struct timespec ts = { 0, 0 };
|
||||||
ts.tv_sec = time(NULL) + reaper_interval;
|
ts.tv_sec = time(NULL) + reaper_interval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user