diff --git a/apps/coin_info/app.js b/apps/coin_info/app.js index cfb696e3a..3af226840 100644 --- a/apps/coin_info/app.js +++ b/apps/coin_info/app.js @@ -75,6 +75,13 @@ layout.update(); // function getChart(period) { + // Clear any existing timeout + if (updateTimeout) clearTimeout(updateTimeout); + + // + const date = new Date().toDateString(); + logFile.write("Called:" + date); + // timePeriod = period; currLoadMsg = `Load... ${period}`; @@ -103,7 +110,7 @@ function getChart(period) { }) .finally(() => { // Schedule next update regardless of success or failure - updateTimeout = setTimeout(getChart, 60000, period); // 5 minutes + updateTimeout = setTimeout(getChart, 30000, period); // 5 minutes }); } diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index 67637131d..72761de21 100644 --- a/apps/coin_info/metadata.json +++ b/apps/coin_info/metadata.json @@ -1,7 +1,7 @@ { "id": "coin_info", "name": "Crypto-Coins Info", "shortName":"Coins Info", - "version": "0.06.46", + "version": "0.06.47", "description": "Crypto-Coins Infos with the help of the Binance API", "icon": "app.png", "tags": "clkinfo",