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:
authorДобрый Ээх <bukharaev@gmail.com>2017-06-13 14:16:20 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2017-06-14 13:23:14 +0300
commit694ee6833acef58c3d2eade56c701daae9453459 (patch)
tree53e224360da1d2d364c798617b3cc77df3e8e59a /tracking/reporter.hpp
parentcc4e6c0a1e306cf456af609d027f07e804a6f825 (diff)
[tracking] Don't track if device is not charging
Diffstat (limited to 'tracking/reporter.hpp')
-rw-r--r--tracking/reporter.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tracking/reporter.hpp b/tracking/reporter.hpp
index a8f63b935b..1ddd16d5b0 100644
--- a/tracking/reporter.hpp
+++ b/tracking/reporter.hpp
@@ -54,6 +54,7 @@ private:
milliseconds m_pushDelay;
bool m_wasConnected = false;
double m_lastConnectionAttempt = 0.0;
+ double m_lastNotChargingEvent = 0.0;
// Function to be called every |kPushDelayMs| in
// case no points were sent.
function<void()> m_idleFn;