Changes between Version 1 and Version 2 of Ticket #7810, comment 11


Ignore:
Timestamp:
Nov 28, 2013, 11:23:31 AM (11 years ago)
Author:
korli

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7810, comment 11

    v1 v2  
    1 {{{ if (fCachedAcpiInfo.current_rate > 0 && fRateBuffer.GetMeanRate() > 0) }}} would be fine.
     1Would changing line 101 {{{ if (fCachedAcpiInfo.current_rate > 0) }}} to {{{ if (fCachedAcpiInfo.current_rate > 0 || fRateBuffer.GetMeanRate() > 0) }}} fix that?
     2
     3or chould one add
     4{{{
     5int meanRate = fRateBuffer.GetMeanRate();
     6if (fCachedAcpiInfo.current_rate > 0 ||  meanRate > 0)
     7                info->time_left = 3600 * fCachedAcpiInfo.capacity
     8                        / meanRate;
     9}}}