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:
parent
48bf7508aa
commit
4bf4ab5673
6 changed files with 371 additions and 33 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue