Fix reaper_frequency naming

This commit is contained in:
Marc Di Luzio 2019-02-09 15:06:24 +00:00
parent b7dff4265c
commit d5ffdcffdb
3 changed files with 3 additions and 3 deletions

View File

@ -438,7 +438,7 @@ bool config_get_client_blacklisted(GameModeConfig *self, const char *client)
/*
* Gets the reaper frequency
*/
long config_get_reaper_thread_frequency(GameModeConfig *self)
long config_get_reaper_frequency(GameModeConfig *self)
{
long value = 0;
memcpy_locked_config(self, &value, &self->reaper_frequency, sizeof(long));

View File

@ -87,7 +87,7 @@ bool config_get_client_blacklisted(GameModeConfig *self, const char *client);
/*
* 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)

View File

@ -549,7 +549,7 @@ static void *game_mode_context_reaper(void *userdata)
/* Stack, not allocated, won't disappear. */
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 };
ts.tv_sec = time(NULL) + reaper_interval;