diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-12 12:23:40 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-25 14:13:34 +0300 |
commit | aee6c740b4e7626215a9af241a3972997414b5c5 (patch) | |
tree | 2e1aefff5de08bfe00d181c240378d80df30ba22 /js | |
parent | 2a0a5340c4e8038765307f70cecf826f83290dd2 (diff) |
Use Q promise library to accurately and cleanly test the heart beat feature in the JS tracker.
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js index 16701cf08c..ec93b97806 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -3253,7 +3253,7 @@ if (typeof Piwik !== 'object') { */ function heartBeatPingIfActivity() { var now = new Date(); - if (lastTrackerRequestTime + configHeartBeatDelay < now.getTime()) { + if (lastTrackerRequestTime + configHeartBeatDelay <= now.getTime()) { var requestPing = getRequest('ping=1', null, 'ping'); sendRequest(requestPing, configTrackerPause); |