From 6212ff3cb989e2f3e0de2238204062f521a1d54d Mon Sep 17 00:00:00 2001 From: fk Date: Thu, 3 Oct 2024 15:46:12 +0200 Subject: [PATCH] change to 60 seconds --- templates/index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/templates/index.html b/templates/index.html index 55bd9cf..9d86326 100644 --- a/templates/index.html +++ b/templates/index.html @@ -96,7 +96,6 @@ const margin = 20 for (const [_, bot] of Object.entries(bots)) { - console.log(bot) ctx.lineWidth = 4 ctx.strokeStyle = bot.color_ring ctx.beginPath() @@ -104,7 +103,6 @@ for (let i = 1; i < bot.x.length; i++) { ctx.lineTo(getX(width, margin, 0, graph_data.game, bot.x[i]), getY(height, margin, graph_data.min_elo, graph_data.max_elo, bot.y[i])) } - console.log("stroking") ctx.stroke() } } catch (err) { @@ -118,9 +116,9 @@ canvas.height = canvas.clientHeight * window.devicePixelRatio; } - // Poll the server every 5 seconds - setInterval(fetchLeaderboardData, 5000); - setInterval(draw_graph, 5000); + // Poll the server every 60 seconds + setInterval(fetchLeaderboardData, 60_000); + setInterval(draw_graph, 60_000); // Initial load fetchLeaderboardData();