Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG-FIX] Fixed bug related to recurring sudo prompt for functions that even don't require it #531

Merged
merged 1 commit into from
Jun 30, 2023

Commits on Jun 28, 2023

  1. 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 AdnanHodzic#530
    rootCircle committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    4e10cdb View commit details
    Browse the repository at this point in the history