Fix typo (discarge -> discharge).

This commit is contained in:
hira 2006-07-12 13:16:36 +00:00
parent 3d374e9191
commit 7c54838d63
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_apm.c,v 1.2 2006/07/12 11:31:39 christos Exp $ */
/* $NetBSD: acpi_apm.c,v 1.3 2006/07/12 13:16:36 hira Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_apm.c,v 1.2 2006/07/12 11:31:39 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_apm.c,v 1.3 2006/07/12 13:16:36 hira Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -235,7 +235,7 @@ acpiapm_get_powstat(void *opaque, u_int batteryid, struct apm_power_info *pinfo)
}
if ((pinfo->battery_flags & APM_BATT_FLAG_CHARGING) == 0) {
if (discharge != -1 && cap != -1 && discarge != 0)
if (discharge != -1 && cap != -1 && discharge != 0)
pinfo->minutes_left = 60 * cap / discharge;
if (pinfo->battery_state == APM_BATT_UNKNOWN)
pinfo->battery_state = pinfo->ac_state == APM_AC_ON ?