diff options
author | Добрый Ээх <bukharaev@gmail.com> | 2017-06-13 14:16:20 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2017-06-14 13:23:14 +0300 |
commit | 694ee6833acef58c3d2eade56c701daae9453459 (patch) | |
tree | 53e224360da1d2d364c798617b3cc77df3e8e59a /tracking/reporter.hpp | |
parent | cc4e6c0a1e306cf456af609d027f07e804a6f825 (diff) |
[tracking] Don't track if device is not charging
Diffstat (limited to 'tracking/reporter.hpp')
-rw-r--r-- | tracking/reporter.hpp | 1 |
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; |