diff --git a/Graph Views/XRGBatteryView.m b/Graph Views/XRGBatteryView.m index 30848c0..43822bc 100644 --- a/Graph Views/XRGBatteryView.m +++ b/Graph Views/XRGBatteryView.m @@ -300,7 +300,7 @@ - (void)graphUpdate:(NSTimer *)aTimer { [self.dischargeWatts setNextValue:dischargeWattsSum]; // Calculate the time remaining. - if ((chargeWattsSum == 0) && (dischargeWattsSum == 0)) { + if ((fabs(chargeWattsSum) < 0.1) && (fabs(dischargeWattsSum) < 0.1)) { minutesRemaining = 0; } else {