From 58d629c8e214ba4b28671217b49000505ef0167d Mon Sep 17 00:00:00 2001 From: vng Date: Fri, 9 Nov 2012 00:54:01 +0300 Subject: Minor style changes. --- platform/location_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform/location_service.cpp') 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; -- cgit v1.2.3