From 7ad97b954cb88a84c8a74e42d7a62614bb36bf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 10 May 2021 22:12:19 +0200 Subject: [PATCH] SEBWIN-489: Changed power supply thresholds from 40% = low and 20% = critical to 20% = low and 10% = critical. --- SafeExamBrowser.SystemComponents/PowerSupply/PowerSupply.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.SystemComponents/PowerSupply/PowerSupply.cs b/SafeExamBrowser.SystemComponents/PowerSupply/PowerSupply.cs index 9f3a3982..fa3f61f9 100644 --- a/SafeExamBrowser.SystemComponents/PowerSupply/PowerSupply.cs +++ b/SafeExamBrowser.SystemComponents/PowerSupply/PowerSupply.cs @@ -37,7 +37,7 @@ namespace SafeExamBrowser.SystemComponents.PowerSupply var status = new PowerSupplyStatus(); status.BatteryCharge = charge; - status.BatteryChargeStatus = charge <= 0.4 ? (charge <= 0.2 ? BatteryChargeStatus.Critical : BatteryChargeStatus.Low) : BatteryChargeStatus.Okay; + status.BatteryChargeStatus = charge <= 0.2 ? (charge <= 0.1 ? BatteryChargeStatus.Critical : BatteryChargeStatus.Low) : BatteryChargeStatus.Okay; status.BatteryTimeRemaining = new TimeSpan(hours, minutes, 0); status.IsOnline = SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online;