mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
set the default gov not the desired gov in tests
This commit is contained in:
parent
b6da948ca2
commit
0efd65fc78
@ -319,12 +319,11 @@ static int run_cpu_governor_tests(struct GameModeConfig *config)
|
||||
strcpy(desiredgov, "performance");
|
||||
|
||||
char defaultgov[CONFIG_VALUE_MAX] = { 0 };
|
||||
config_get_default_governor(config, defaultgov);
|
||||
|
||||
if (desiredgov[0] == '\0') {
|
||||
if (defaultgov[0] == '\0') {
|
||||
const char *currentgov = get_gov_state();
|
||||
if (currentgov) {
|
||||
strncpy(desiredgov, currentgov, CONFIG_VALUE_MAX);
|
||||
strncpy(defaultgov, currentgov, CONFIG_VALUE_MAX);
|
||||
} else {
|
||||
LOG_ERROR(
|
||||
"Could not get current CPU governor state, this indicates an error! See rest "
|
||||
|
Loading…
x
Reference in New Issue
Block a user