Searched defs:remaining_time (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/cmd/hal/hald/
H A Dutil_pm.c141 int remaining_time = 0; local
170 * chargeRate to prevent removing battery.remaining_time.
201 remaining_time = ((double) chargeLevel / (double) chargeRate) * 60 * 60;
211 remaining_time = ((double) (chargeLastFull - chargeLevel) / (double) chargeRate) * 60 * 60;
215 if (remaining_time < 0) {
216 HAL_WARNING (("remaining_time %i, returning -1", remaining_time));
217 remaining_time = -1;
220 else if (remaining_time > 60*60*60) {
221 HAL_WARNING (("remaining_time *ver
[all...]
/osnet-11/usr/src/cmd/hal/utils/
H A Dacpi.c177 libhal_device_remove_property(ctx, udi, "battery.remaining_time",
288 int remaining_time; local
395 remaining_time = util_compute_time_remaining(udi, reporting_rate,
398 * Some batteries give bad remaining_time estimates relative to
401 if (charging && ((remaining_time < 30) || ((remaining_time < 300) &&
403 remaining_time = util_compute_time_remaining(udi,
421 * where the remaining_time cannot be correct.
425 remaining_time = 0;
427 if (remaining_time <
[all...]

Completed in 1093 milliseconds