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:
authorvng <viktor.govako@gmail.com>2012-11-09 01:54:01 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:46:51 +0300
commit58d629c8e214ba4b28671217b49000505ef0167d (patch)
tree8227b919d51f0b156fa9622d83013c9e30d026af /platform/location_service.cpp
parentd83b3d3384389e571445b5e95ee1effe3b0f7604 (diff)
Minor style changes.
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;