Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert change to report interval logic
75acb36 changed the `else` block to an `else if` at line 418 which caused the `pthread_cond_wait` call to fall outside of the block. That resulted in the decision thread checking for fan events a second time in the same iteration, and this time blocking without a report timeout. The symptom was not a full freeze of the decision thread, just degraded performance, and you could recover the system by killing fapolicyd. This only occurred when a report interval was enabled, when disabled fapolicyd functioned normally. The fix is to restore the else so `pthread_cond_wait` falls within the else and is only called when reporting is disabled.
- Loading branch information