Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 2004 16:20:24 +0100
From:      "Liam J. Foy" <liamfoy@sepulcrum.org>
To:        acpi@freebsd.org
Subject:   apm -t suggestion
Message-ID:  <20040626162024.1ebc2b61.liamfoy@sepulcrum.org>

next in thread | raw e-mail | index | archive | help
Hey guys,
	
I was looking at the following code in acpi_cmbat.c (/usr/src/sys/dev/acpica/):

	[snip]
 	} else {
            /* Couldn't find valid rate and full battery time */
            bat[i]->min = 0;
        }
0 is what is eventually returned from apm -t when it couldn't
find valid rate or full battery time. I think this should be
set to -1 (unknown) instead of 0 as we don't have 0 seconds
remaining. Either that or it is mentioned in the man page.

What do you guys think ?
-- 
-Liam J. Foy
http://liamfoy.kerneled.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040626162024.1ebc2b61.liamfoy>