Updated check-power.ps1

This commit is contained in:
Markus Fleschutz 2024-10-21 20:56:19 +02:00
parent dd7054cf48
commit 5214a504db

View File

@ -29,7 +29,7 @@ try {
} elseif ($percent -ge 95) { } elseif ($percent -ge 95) {
$reply = "✅ Battery nearly full ($percent%, power scheme is '$powerScheme')" $reply = "✅ Battery nearly full ($percent%, power scheme is '$powerScheme')"
} else { } else {
$reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')" $reply = "✅ Battery $percent% and charging (power scheme is '$powerScheme')"
} }
} else { # must be offline } else { # must be offline
if (($remaining -eq 0) -and ($percent -ge 60)) { if (($remaining -eq 0) -and ($percent -ge 60)) {