Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug related to repeated sudo prompt due to set_override calls
set_override method is now called only if force flag is invoked. Here are the specific code changes made: In auto_cpufreq/core.py: - Line 96: Removed the root_check call from the set_override function. This was intended to be done to comply with code template, i.e., to use root_check in the main file. In bin/auto-cpufreq: - Line 45: Added a root_check call before calling set_override in main program. Also, set_override is only called if force option is invoked, saving us from precious extra overheads. Fixes #530
- Loading branch information