Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/hal/hald/
H A Dutil_pm.c91 int chargeLastFull) in util_compute_percentage_charge() argument
100 if (chargeLastFull > 0) in util_compute_percentage_charge()
101 percentage = ((double) chargeLevel / (double) chargeLastFull) * 100; in util_compute_percentage_charge()
103 HAL_WARNING (("chargeLastFull %i, percentage returning -1!", chargeLastFull)); in util_compute_percentage_charge()
136 int chargeLastFull, in util_compute_time_remaining() argument
144 if (chargeRate < 0 || chargeLevel < 0 || chargeLastFull < 0) { in util_compute_time_remaining()
207 if (chargeLevel > chargeLastFull ) { 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 … util_compute_time_remaining (const char *id, int chargeRate, int chargeLevel, int chargeLastFull,
35 int util_compute_percentage_charge (const char *id, int chargeLevel, int chargeLastFull);