History

move tallyAllTimerRecords out of conditional so they don't pile up

ZappoMan committed 12 years ago

Commit c8db8851 parent 3a6715c1 file · +2 −2Browse files

Showing the changes to interface/src/ui/Stats.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ui/Stats.cpp+2−2
@@ -222,11 +222,11 @@ void Stats::display( · 221 unmodified lines
222222
223223 lines = _expanded ? 5 : 3;
224224 int columnOneWidth = _generalStatsWidth;
225+
226+ PerformanceTimer::tallyAllTimerRecords(); // do this even if we're not displaying them, so they don't stack up
225227
226228 if (_expanded && Menu::getInstance()->isOptionChecked(MenuOption::DisplayTimingDetails)) {
227229
228− PerformanceTimer::tallyAllTimerRecords();
229−
230230 columnOneWidth = _generalStatsWidth + _pingStatsWidth + _geoStatsWidth; // make it 3 columns wide...
231231 // we will also include room for 1 line per timing record and a header of 4 lines
232232 lines += 4;