1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

daemon: less verbosity by default; fine-tune via config

This commit is contained in:
NotAShelf 2025-05-13 22:49:16 +03:00
parent 48bf7508aa
commit 4bf4ab5673
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
6 changed files with 371 additions and 33 deletions

View file

@ -578,7 +578,7 @@ pub fn get_battery_info(config: &AppConfig) -> Result<Vec<BatteryInfo>> {
let mut batteries = Vec::new();
let power_supply_path = Path::new("/sys/class/power_supply");
if (!power_supply_path.exists()) {
if !power_supply_path.exists() {
return Ok(batteries); // no power supply directory
}