X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fstatshourjourneys.cpp;h=9c201305c8680c29fb426fc96d980d1144d4d99d;hp=f8616cb3127e75bf448d89537f5538b04be2c369;hb=HEAD;hpb=e6c4099f5bb1565a770e55d1dd671d846dcbd68b diff --git a/src/statshourjourneys.cpp b/src/statshourjourneys.cpp index f8616cb..9c20130 100644 --- a/src/statshourjourneys.cpp +++ b/src/statshourjourneys.cpp @@ -1,5 +1,3 @@ -#include - #include "statshourjourneys.h" #define LOWESTHOUR (7) @@ -8,7 +6,7 @@ StatsHourJourneys::StatsHourJourneys(JourneyModel * journeys) : journeys(journeys) { - title = "Journey proportions per hour (%)"; + title = "Journey proportion per hour (%)"; units = "%"; labels.clear(); @@ -22,8 +20,7 @@ void StatsHourJourneys::update() { quint64 totalmins; int pos; - qDebug() << "Calculating values"; - values.clear(); + barvalues.clear(); for (pos = 0; pos < 24; pos++) { minsperhour[pos] = 0u; @@ -53,8 +50,6 @@ void StatsHourJourneys::update() { if (totalmins > 0) { result = ((double)minsperhour[pos] / (double)totalmins); } - values << result; + barvalues << result; } - - qDebug() << "Calculated values"; }