mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 22:36:12 +01:00
Update check-battery.ps1
This commit is contained in:
parent
584d70329b
commit
ee4091adab
@ -29,7 +29,9 @@ try {
|
||||
$Reply = "✅ Battery charging... ($Percent%)"
|
||||
}
|
||||
} else { # must be offline
|
||||
if ($Remaining -le 5) {
|
||||
if ($Remaining -eq 0) {
|
||||
$Reply = "✅ Battery at $Percent%, calculating remaining time..."
|
||||
} elseif ($Remaining -le 5) {
|
||||
$Reply = "⚠️ Battery at $Percent%, ONLY $Remaining MIN remaining"
|
||||
} elseif ($Remaining -le 30) {
|
||||
$Reply = "⚠️ Battery at $Percent%, only $Remaining min remaining"
|
||||
|
Loading…
Reference in New Issue
Block a user