mirror of
https://github.com/edu4rdshl/powerman.git
synced 2026-07-17 23:24:53 +00:00
Added correct percentage for warning.
This commit is contained in:
parent
b17f42ee2a
commit
ec0ccb0d0c
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ fn battery_notification(bat_charging: &str) -> String {
|
|||
// Path for battery capacity percentage, battery charging status and systemd
|
||||
let battery_capacity_path = "/sys/class/power_supply/BAT0/capacity";
|
||||
|
||||
let percentage_crit = 60;
|
||||
let percentage_crit = 10;
|
||||
|
||||
// Check if systemd and BAT0 device exist
|
||||
if Path::new(&battery_capacity_path).exists() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue