Commit Diff


commit - 7f2408559294e746a03d3f15ed1951a6e4ed744d
commit + 19f59598f4ef2492d961f19998f391c506016987
blob - 530b947f6a551749a7b033dabde016cb46c7c839
blob + cab9148fbe3b60f2c7e837e183a05b29b375aea5
--- bedstatus/freebsd.c
+++ bedstatus/freebsd.c
@@ -70,7 +70,7 @@ static bool bat_rem (int *x)
 
 static bool power (int *pwr)
 {
-	return SYSCTL ("hw.acpi.battery.rate", pwr);
+	return SYSCTL ("hw.acpi.battery.rate", pwr) && *pwr > 0;
 }
 
 static bool cpu_speed (int *mhz)