Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-06-12 12:23:40 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-25 14:13:34 +0300
commitaee6c740b4e7626215a9af241a3972997414b5c5 (patch)
tree2e1aefff5de08bfe00d181c240378d80df30ba22 /js
parent2a0a5340c4e8038765307f70cecf826f83290dd2 (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.js2
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);