You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts_wip/Win_Battery_Capacity_Check.ps1
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,7 @@ if ($absoluteValues) {
43
43
$label="mWh"
44
44
}
45
45
46
-
If($available-le$minimumBatteryCapacity)
47
-
{
48
-
Write-Output"The battery needs investigating. Full charge capacity is below the threshold of $minimumBatteryCapacity$label ($available$label available of design capacity $designCapacity mWh."
49
-
Exit1
50
-
} else {
51
-
Write-Output"The battery is reporting ok. Full charge capacity is above the threshold of $minimumBatteryCapacity$label ($available$label available of design capacity $designCapacity mWh."
52
-
Exit0
53
-
}
46
+
"Full charge capacity $available$label of $designCapacity mWh."
0 commit comments