From ee4091adabe389406f21801f3d33b2fa78dd8388 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sat, 5 Aug 2023 15:11:42 +0200 Subject: [PATCH] Update check-battery.ps1 --- Scripts/check-battery.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/check-battery.ps1 b/Scripts/check-battery.ps1 index 66418ed6..ae5d77b4 100755 --- a/Scripts/check-battery.ps1 +++ b/Scripts/check-battery.ps1 @@ -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"