mirror of
https://github.com/RGBCube/superfreq
synced 2025-07-27 17:07:44 +00:00
daemon: fix typo in comment
This commit is contained in:
parent
c046c27376
commit
862e090bc6
1 changed files with 2 additions and 2 deletions
|
@ -414,7 +414,7 @@ pub fn run_daemon(mut config: AppConfig, verbose: bool) -> Result<(), Box<dyn st
|
|||
};
|
||||
|
||||
// Variables for adaptive polling
|
||||
// Mak sure that the poll interval is *never* zero in order to prevent a busy loop
|
||||
// Make sure that the poll interval is *never* zero to prevent a busy loop
|
||||
let mut current_poll_interval = config.daemon.poll_interval_sec.max(1);
|
||||
if config.daemon.poll_interval_sec == 0 {
|
||||
warn!("Poll interval is set to zero in config, using 1s minimum to prevent a busy loop");
|
||||
|
@ -623,7 +623,7 @@ fn determine_system_state(report: &SystemReport, history: &SystemHistory) -> Sys
|
|||
if avg_load > 3.0 {
|
||||
return SystemState::HighLoad;
|
||||
}
|
||||
|
||||
|
||||
// Check idle state only if we don't have high load
|
||||
if history.is_system_idle() {
|
||||
return SystemState::Idle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue