X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fstatshourcongestion.cpp;h=4debac74c9555d3f9e8b0862519b143839be8385;hp=a98230e4f479c4622155f4167762498c7935d682;hb=refs%2Fheads%2Fmaster;hpb=e6c4099f5bb1565a770e55d1dd671d846dcbd68b diff --git a/src/statshourcongestion.cpp b/src/statshourcongestion.cpp index a98230e..4debac7 100644 --- a/src/statshourcongestion.cpp +++ b/src/statshourcongestion.cpp @@ -1,5 +1,3 @@ -#include - #include "statshourcongestion.h" #define LOWESTHOUR (7) @@ -22,8 +20,7 @@ void StatsHourCongestion::update() { unsigned int count[24]; int pos; - qDebug() << "Calculating values"; - values.clear(); + barvalues.clear(); for (pos = 0; pos < 24; pos++) { passed[pos] = 0.0; @@ -58,10 +55,8 @@ void StatsHourCongestion::update() { if (result > maxval) { maxval = result; } - values << result; + barvalues << result; } step = (maxval > 5.0) ? qRound(maxval / 5.0) : (maxval / 5.0); - - qDebug() << "Calculated values"; }