diff options
| author | christos <christos@NetBSD.org> | 2006-07-10 22:46:06 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-07-10 22:46:06 +0000 |
| commit | 358557d37b9fe04be93ffbe9a324e3545cfc43f9 (patch) | |
| tree | 334dd4ceb14b64527d4dcf308f67a71b6e9d96ce /sys/dev/apm | |
| parent | 9dc3ec85f6372a0104477d690f28c05b088e2e54 (diff) | |
fix some field names (Arnaud Lacombe)
Diffstat (limited to 'sys/dev/apm')
| -rw-r--r-- | sys/dev/apm/apm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/apm/apm.c b/sys/dev/apm/apm.c index 85478bf15f8..f76933ad365 100644 --- a/sys/dev/apm/apm.c +++ b/sys/dev/apm/apm.c @@ -1,4 +1,4 @@ -/* $NetBSD: apm.c,v 1.3 2006/07/08 20:22:19 christos Exp $ */ +/* $NetBSD: apm.c,v 1.4 2006/07/10 22:46:06 christos Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.3 2006/07/08 20:22:19 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.4 2006/07/10 22:46:06 christos Exp $"); #include "opt_apm.h" @@ -291,11 +291,11 @@ apm_power_print(struct apm_softc *sc, struct apm_power_info *pi) printf(" charging"); } printf("\n"); - if (pi->remaining_valid) { + if (pi->minutes_valid) { printf("%s: estimated ", sc->sc_dev.dv_xname); - if (pi->remaining_minutes / 60) - printf("%dh ", pi->remaining_minutes / 60); - printf("%dm\n", pi->remaining_minutes % 60); + if (pi->minutes_left / 60) + printf("%dh ", pi->minutes_left / 60); + printf("%dm\n", pi->minutes_left % 60); } } return; |
