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