From: Chris Fulljames Date: Sun, 20 Jul 2025 15:07:47 +0000 (-0400) Subject: Slow down polling for new activity to reduce log clutter X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=07ebe6a79728cae35440e50422f135ceaef40a73;p=littlesongplace.git Slow down polling for new activity to reduce log clutter --- diff --git a/src/littlesongplace/static/nav.js b/src/littlesongplace/static/nav.js index 53ea655..67887b9 100644 --- a/src/littlesongplace/static/nav.js +++ b/src/littlesongplace/static/nav.js @@ -196,8 +196,8 @@ async function checkForNewActivity() { indicator.hidden = !json.new_activity; } -// Check for new activity every 10s -setInterval(checkForNewActivity, 10000); +// Check for new activity every 5 minutes (in ms) +setInterval(checkForNewActivity, 5 * 60 * 1000); function customImage(source, target) { // Customize an image by performing a palette swap on the .gif