On Thu, 02 May 2024 00:33:47 +0200, "Nathaniel Griswold" <n...@fastmail.com> wrote: > > Does apmd keep a running average for the current and voltage or is it based > on instantaneous (as close as that can be)? >
As far as I understand the code it devides hw.sensors.acpibat0.amphour3 (remaining capacity, Ah) by hw.sensors.acpibat0.current0 (rate, A) to compute life estimation. See acpi.c -- wbr, Kirill