diff options
| author | macallan <macallan@NetBSD.org> | 2012-09-18 04:36:25 +0000 |
|---|---|---|
| committer | macallan <macallan@NetBSD.org> | 2012-09-18 04:36:25 +0000 |
| commit | 12fd098a98d34b2faf320cf5f662d8c19f6f8f3a (patch) | |
| tree | 523a2018e4d019c52e89571c1e35e94330a0ccff /sys/arch/macppc/dev | |
| parent | 5288daf89afda99008dee080e5688c1604ae3471 (diff) | |
fix typo
Diffstat (limited to 'sys/arch/macppc/dev')
| -rw-r--r-- | sys/arch/macppc/dev/smartbat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/smartbat.c b/sys/arch/macppc/dev/smartbat.c index 348d68d4640..86c828ec9b8 100644 --- a/sys/arch/macppc/dev/smartbat.c +++ b/sys/arch/macppc/dev/smartbat.c @@ -1,4 +1,4 @@ -/* $NetBSD: smartbat.c,v 1.11 2012/09/06 13:05:53 macallan Exp $ */ +/* $NetBSD: smartbat.c,v 1.12 2012/09/18 04:36:25 macallan Exp $ */ /*- * Copyright (c) 2007 Michael Lorenz @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: smartbat.c,v 1.11 2012/09/06 13:05:53 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smartbat.c,v 1.12 2012/09/18 04:36:25 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -268,8 +268,8 @@ smartbat_refresh(struct sysmon_envsys *sme, envsys_data_t *edata) break; case BAT_CHARGE_STATE: { - int ch = sc->sc_max_charge * 100 / - sc->sc_charge; + int ch = sc->sc_charge * 100 / + sc->sc_max_charge; if (ch < 6) { edata->value_cur = ENVSYS_BATTERY_CAPACITY_CRITICAL; |
