Searched refs:remaining_time (Results 1 – 3 of 3) sorted by relevance
141 int remaining_time = 0; in util_compute_time_remaining() local201 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()215 if (remaining_time < 0) { in util_compute_time_remaining()216 HAL_WARNING (("remaining_time %i, returning -1", remaining_time)); in util_compute_time_remaining()217 remaining_time = -1; in util_compute_time_remaining()220 else if (remaining_time > 60*60*60) { in util_compute_time_remaining()222 remaining_time = -1; in util_compute_time_remaining()225 return remaining_time; in util_compute_time_remaining()
288 int remaining_time; in battery_dynamic_update() local395 remaining_time = util_compute_time_remaining(udi, reporting_rate, in battery_dynamic_update()401 if (charging && ((remaining_time < 30) || ((remaining_time < 300) && in battery_dynamic_update()403 remaining_time = util_compute_time_remaining(udi, in battery_dynamic_update()425 remaining_time = 0; in battery_dynamic_update()427 if (remaining_time < 0) { in battery_dynamic_update()431 } else if (remaining_time >= 0) { in battery_dynamic_update()433 "battery.remaining_time", remaining_time); in battery_dynamic_update()
1960 int remaining_time; member1977 tp->remaining_time, in report_routes()2024 tp->remaining_time -= time; in age_table()2025 if (tp->remaining_time <= 0) { in age_table()2122 tp->remaining_time = ttl; in record_router()2133 tp->remaining_time = ttl; in record_router()