battery hasnt been working on my fbsd laptop for a couple monthes, couldnt be bothered fixing, just did.

SVN revision: 24901
This commit is contained in:
codewarrior 2006-08-19 09:07:33 +00:00 committed by codewarrior
parent 9a2ccd1e64
commit 12cc414daa
1 changed files with 2 additions and 2 deletions

View File

@ -932,7 +932,7 @@ _battery_bsd_acpi_check(void)
len = sizeof(life);
if (sysctl(mib_life, 4, &life, &len, NULL, 0) == -1)
/* ERROR */
level = -1;
level = -1;
bat_val = life;
@ -1008,7 +1008,7 @@ _battery_bsd_acpi_check(void)
stat->alarm = 1;
}
}
if (!level)
if (level == -1)
{
stat->reading = strdup(_("BAD DRIVER"));
stat->time = strdup("--:--");