Changeset 11355 for trunk/FACT++/gui


Ignore:
Timestamp:
07/12/11 11:58:06 (13 years ago)
Author:
tbretz
Message:
Do not propagate values larger than the maximum to the progress bar.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r11322 r11355  
    13931393        fFadBufferMax->setValue(stat.totMem/1000000);
    13941394        fFadBuffer->setMaximum(stat.totMem/100);
    1395         fFadBuffer->setValue(stat.maxMem/100);  // Max mem used in last second
     1395        fFadBuffer->setValue((stat.maxMem>stat.totMem?stat.totMem:stat.maxMem)/100);  // Max mem used in last second
    13961396
    13971397        uint32_t sum = 0;
Note: See TracChangeset for help on using the changeset viewer.