Change stats fetch interval from 500ms to 2 seconds
Reduces the frequency of stats API calls from twice per second to once every 2 seconds, reducing server load.
This commit is contained in:
parent
037bbfb813
commit
1ec0b3e7ca
@ -382,9 +382,9 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Update immediately and then every 500ms
|
||||
// Update immediately and then every 2 seconds
|
||||
updateStatus();
|
||||
setInterval(updateStatus, 500);
|
||||
setInterval(updateStatus, 2000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user