X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fstatshourcongestion.cpp;fp=src%2Fstatshourcongestion.cpp;h=1d049e72d0d9b0ff0d9f543538d7eeed5a371153;hp=a98230e4f479c4622155f4167762498c7935d682;hb=54ab3ebfadf8cb258561a4641249da8c6469dc0f;hpb=e6c4099f5bb1565a770e55d1dd671d846dcbd68b diff --git a/src/statshourcongestion.cpp b/src/statshourcongestion.cpp index a98230e..1d049e7 100644 --- a/src/statshourcongestion.cpp +++ b/src/statshourcongestion.cpp @@ -23,7 +23,7 @@ void StatsHourCongestion::update() { int pos; qDebug() << "Calculating values"; - values.clear(); + barvalues.clear(); for (pos = 0; pos < 24; pos++) { passed[pos] = 0.0; @@ -58,7 +58,7 @@ void StatsHourCongestion::update() { if (result > maxval) { maxval = result; } - values << result; + barvalues << result; } step = (maxval > 5.0) ? qRound(maxval / 5.0) : (maxval / 5.0);