Lines Matching defs:remaining_time
141 int remaining_time = 0;
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 *very* high, returning -1"));
222 remaining_time = -1;
225 return remaining_time;