projects
/
jspeed
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72650dd
)
Average speed calculating fixed.
author
eshe
<jessehakanen@gmail.com>
Sun, 18 Jul 2010 19:35:07 +0000
(20:35 +0100)
committer
eshe
<jessehakanen@gmail.com>
Sun, 18 Jul 2010 19:35:07 +0000
(20:35 +0100)
src/odometer.cpp
patch
|
blob
|
history
diff --git
a/src/odometer.cpp
b/src/odometer.cpp
index
41c6fe3
..
5dec354
100644
(file)
--- a/
src/odometer.cpp
+++ b/
src/odometer.cpp
@@
-175,7
+175,7
@@
double Odometer::getAverageSpeed() const
return 0.0;
}
- return (static_cast<double>(trip_) * Location::getUnitMultiplier()) / (static_cast<double>(elapsed) / 60.0);
+ return (static_cast<double>(getTrip())) / (static_cast<double>(getTripTime()) / 3600.0);
}
double Odometer::getTotal() const