Home
last modified time | relevance | path

Searched refs:chargeRate (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/hal/hald/
H A Dutil_pm.c134 int chargeRate, in util_compute_time_remaining() argument
144 if (chargeRate < 0 || chargeLevel < 0 || chargeLastFull < 0) { in util_compute_time_remaining()
158 if (chargeRate == 0 || guessChargeRate) { in util_compute_time_remaining()
172 chargeRate = battery_info->last_chargeRate; in util_compute_time_remaining()
174chargeRate = ((chargeLevel - battery_info->last_level) * 60 * 60) / (cur_time - battery_info->last… in util_compute_time_remaining()
180 chargeRate = (chargeRate > 0) ? chargeRate : -chargeRate; in util_compute_time_remaining()
184 battery_info->last_chargeRate = chargeRate; in util_compute_time_remaining()
197 if (chargeRate == 0) in util_compute_time_remaining()
201 remaining_time = ((double) chargeLevel / (double) chargeRate) * 60 * 60; in util_compute_time_remaining()
211 remaining_time = ((double) (chargeLastFull - chargeLevel) / (double) chargeRate) * 60 * 60; in util_compute_time_remaining()
H A Dutil_pm.h32 int util_compute_time_remaining (const char *id, int chargeRate, int chargeLevel, int chargeLastFul…