Date: Wed, 14 Jul 2004 19:31:31 +0000 (UTC) From: Mark Santcroos <marks@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/acpica acpi_cmbat.c Message-ID: <200407141931.i6EJVVDn017251@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marks 2004-07-14 19:31:31 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_cmbat.c Log: Some laptops report the "design-capacity" instead of the "real-capacity" when the battery is fully charged. That breaks some of the arithmetic in calculating the remaining capacity (ends up with more than 100%). This commit makes sure the max is 100. Approved by: njl Revision Changes Path 1.33 +9 -0 src/sys/dev/acpica/acpi_cmbat.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407141931.i6EJVVDn017251>