Commit c98f1cc2 authored by Zeeshan Ali's avatar Zeeshan Ali

location: No negative speeds

If timestamp on new location is older than that on previous location,
calculating speed from them does not make sense. Instead simply set the
speed to unknown in such cases.
parent a6f30bee
......@@ -493,7 +493,7 @@ gclue_location_set_speed_from_prev_location (GClueLocation *location,
timestamp = geocode_location_get_timestamp (gloc);
prev_timestamp = geocode_location_get_timestamp (prev_gloc);
if (timestamp == prev_timestamp) {
if (timestamp <= prev_timestamp) {
goto out;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment