Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'platform/location_service.cpp')
-rw-r--r--platform/location_service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/location_service.cpp b/platform/location_service.cpp
index 1159599b1b..a24c8c8acd 100644
--- a/platform/location_service.cpp
+++ b/platform/location_service.cpp
@@ -21,10 +21,11 @@ class PositionFilter
public:
PositionFilter() : m_prevLocation(NULL) {}
~PositionFilter() { delete m_prevLocation; }
+
/// @return true if location should be sent to observers
bool Passes(location::GpsInfo const & newLocation)
{
- if (time(NULL) - newLocation.m_timestamp > location::POSITION_TIMEOUT_SECONDS)
+ if (time(NULL) - newLocation.m_timestamp > 300.0)
return false;
bool passes = true;