Skip to content

Commit

Permalink
legiond: set_all after reload
Browse files Browse the repository at this point in the history
  • Loading branch information
st0nie committed Apr 13, 2024
1 parent adfec4f commit 9fc526d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions extra/service/legiond/legiond.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ int main()
} else if (ret[0] == 'R') {
printf("---config reload start---\n");
parseconf(&config);
set_all(get_powerstate(), &config);
printf("---config reload end-----\n");
} else {
printf("do nothing\n");
Expand Down
4 changes: 2 additions & 2 deletions extra/service/legiond/modules/setapply.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
extern int set_cpu(POWER_STATE power_state, LEGIOND_CONFIG *config)
{
if (config->cpu_control == 0) {
printf("cpu_control is set to 0\n");
printf("cpu_control is set to false\n");
printf("skip cpu_control\n");
return 0;
}
Expand Down Expand Up @@ -57,7 +57,7 @@ extern int set_cpu(POWER_STATE power_state, LEGIOND_CONFIG *config)
extern int set_fancurve(POWER_STATE power_state, LEGIOND_CONFIG *config)
{
if (config->fan_control == 0) {
printf("fan_control is set to 0\n");
printf("fan_control is set to false\n");
printf("skip fan_control\n");
return 0;
}
Expand Down

0 comments on commit 9fc526d

Please sign in to comment.