Subject: CVS commit: src/sys/dev/acpi
To: None <source-changes@NetBSD.org>
From: Quentin Garnier <cube@netbsd.org>
List: source-changes
Date: 08/08/2007 08:36:41
Module Name:	src
Committed By:	cube
Date:		Wed Aug  8 08:36:41 UTC 2007

Modified Files:
	src/sys/dev/acpi: acpi_bat.c

Log Message:
Fix a few minor envsys2 bugs/oddities in acpi_bat(4).

 - mark (DIS)CHARGERATE as invalid when (DIS)CHARGING so that envstat
   doesn't print some weird stats where the system appears to be doing
   both
 - handle the case when it's doing neither by marking *RATE as invalid
   and setting CHARGING to OFF (because we're not charging, even though
   we're not discharging)
 - fix print_stats to print correct values in those cases, and a real
   percentage (i.e., computed against LFCCAPACITY)


To generate a diff of this commit:
cvs rdiff -r1.51 -r1.52 src/sys/dev/acpi/acpi_bat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.