From 4d3806054964394823b034f85a14b82fc529ad68 Mon Sep 17 00:00:00 2001 From: eshe Date: Sun, 18 Jul 2010 20:35:07 +0100 Subject: [PATCH] Average speed calculating fixed. --- src/odometer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5