diff --git a/html/script.js b/html/script.js index 5e82d5d..70dc676 100644 --- a/html/script.js +++ b/html/script.js @@ -537,6 +537,8 @@ function fetchData(options) { } let currentTime = new Date().getTime(); const refreshMs = refreshInt() + lastRefreshInt = refreshMs; + if (!options.force) { if ( currentTime - lastFetch <= refreshMs @@ -6473,8 +6475,6 @@ function refreshInt() { //console.log(refresh); - lastRefreshInt = refresh; - return refresh; }