more consistently set lastRrefreshInt

This commit is contained in:
Matthias Wirth
2025-03-06 06:26:33 +00:00
parent e307cb18a9
commit 900c70ea74

View File

@@ -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;
}