Changes between Version 1 and Version 2 of Ticket #7810, comment 11
- Timestamp:
- Nov 28, 2013, 11:23:31 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7810, comment 11
v1 v2 1 {{{ if (fCachedAcpiInfo.current_rate > 0 && fRateBuffer.GetMeanRate() > 0) }}} would be fine. 1 Would changing line 101 {{{ if (fCachedAcpiInfo.current_rate > 0) }}} to {{{ if (fCachedAcpiInfo.current_rate > 0 || fRateBuffer.GetMeanRate() > 0) }}} fix that? 2 3 or chould one add 4 {{{ 5 int meanRate = fRateBuffer.GetMeanRate(); 6 if (fCachedAcpiInfo.current_rate > 0 || meanRate > 0) 7 info->time_left = 3600 * fCachedAcpiInfo.capacity 8 / meanRate; 9 }}}