X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fstatsweekdaycongestion.cpp;h=9b6eb8129ef3e1e01d1d805af94fb7c32cc9bee7;hp=c4842b3742ceab4be4f0872c2f47d9f47185215c;hb=refs%2Fheads%2Fmaster;hpb=e6c4099f5bb1565a770e55d1dd671d846dcbd68b diff --git a/src/statsweekdaycongestion.cpp b/src/statsweekdaycongestion.cpp index c4842b3..9b6eb81 100644 --- a/src/statsweekdaycongestion.cpp +++ b/src/statsweekdaycongestion.cpp @@ -1,5 +1,3 @@ -#include - #include "statsweekdaycongestion.h" StatsWeekdayCongestion::StatsWeekdayCongestion(JourneyModel * journeys) : @@ -15,8 +13,7 @@ void StatsWeekdayCongestion::update() { unsigned int count[7]; int pos; - qDebug() << "Calculating values"; - values.clear(); + barvalues.clear(); for (pos = 0; pos < 7; pos++) { passed[pos] = 0u; @@ -42,10 +39,8 @@ void StatsWeekdayCongestion::update() { if (result > maxval) { maxval = result; } - values << result; + barvalues << result; } step = maxval > 5.0 ? qRound(maxval / 5.0) : (maxval / 5.0); - - qDebug() << "Calculated values"; }