mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 15:33:15 +01:00
Updated check-power.ps1
This commit is contained in:
parent
dd7054cf48
commit
5214a504db
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user