Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev fix typo
details: https://anonhg.NetBSD.org/src/rev/6dd38a4d2bf8
branches: trunk
changeset: 781607:6dd38a4d2bf8
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Sep 18 04:36:25 2012 +0000
description:
fix typo
diffstat:
sys/arch/macppc/dev/smartbat.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 69525347873a -r 6dd38a4d2bf8 sys/arch/macppc/dev/smartbat.c
--- a/sys/arch/macppc/dev/smartbat.c Tue Sep 18 04:07:44 2012 +0000
+++ b/sys/arch/macppc/dev/smartbat.c Tue Sep 18 04:36:25 2012 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index