From: eshe Date: Sun, 18 Jul 2010 19:35:07 +0000 (+0100) Subject: Average speed calculating fixed. X-Git-Url: http://git.maemo.org/git/?p=jspeed;a=commitdiff_plain;h=4d3806054964394823b034f85a14b82fc529ad68 Average speed calculating fixed. --- diff --git a/src/odometer.cpp b/src/odometer.cpp index 41c6fe3..5dec354 100644 --- a/src/odometer.cpp +++ b/src/odometer.cpp @@ -175,7 +175,7 @@ double Odometer::getAverageSpeed() const return 0.0; } - return (static_cast(trip_) * Location::getUnitMultiplier()) / (static_cast(elapsed) / 60.0); + return (static_cast(getTrip())) / (static_cast(getTripTime()) / 3600.0); } double Odometer::getTotal() const