From d4cb4e106917e4e36341e9d0e0024e3864e9ceb7 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 11 Jan 2024 12:15:30 +0100 Subject: [PATCH] some more debugging --- html/script.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/html/script.js b/html/script.js index 9647f2e..d62487b 100644 --- a/html/script.js +++ b/html/script.js @@ -521,7 +521,7 @@ function fetchData(options) { } } if (debugFetch) { - console.log((currentTime - lastFetch)/1000); + console.log('Time since last fetch: ' + (currentTime - lastFetch)/1000); } lastFetch = currentTime; @@ -637,7 +637,9 @@ function fetchData(options) { fetchCounter += ac_url.length; for (let i in ac_url) { - //console.log(ac_url[i]); + if (debugFetch) { + console.log('Fetching: ' + ac_url[i]); + } let req; if (binCraft || zstd) { req = jQuery.ajax({ @@ -787,6 +789,9 @@ function initPage() { lineWidth=4; enableLabels=true; } + if (usp.has('debugFetch')) { + debugFetch = true; + } if (usp.has('rangeRings')) { SiteCircles = Boolean(parseInt(usp.get('rangeRings')));