Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WinNUT_V2/WinNUT-Client/WinNUT.vb
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ Public Class WinNUT
If .Batt_Charge = -1 AndAlso .Batt_Runtime = -1 Then
LogFile.LogTracing("Battery properties unavailable, unable to validate shutdown conditions.", LogLvl.LOG_WARNING, Me)
ElseIf Not ShutdownStatus Then
If .Batt_Charge <= My.Settings.PW_BattChrgFloor Or
.Batt_Runtime <= My.Settings.PW_RuntimeFloor Then
If (.Batt_Charge <> -1 AndAlso .Batt_Charge <= My.Settings.PW_BattChrgFloor) Or
(.Batt_Runtime <> -1 AndAlso .Batt_Runtime <= My.Settings.PW_RuntimeFloor) Then
LogFile.LogTracing("UPS battery has dropped below stop condition limits.",
LogLvl.LOG_NOTICE, Me, StrLog.Item(AppResxStr.STR_LOG_SHUT_START))
Shutdown_Event()
Expand Down