From 358557d37b9fe04be93ffbe9a324e3545cfc43f9 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 10 Jul 2006 22:46:06 +0000 Subject: [PATCH] fix some field names (Arnaud Lacombe) --- sys/dev/apm/apm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/apm/apm.c b/sys/dev/apm/apm.c index 85478bf15f81..f76933ad365f 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 -__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;