mirror of
https://github.com/wu736139669/OpsPilot.git
synced 2026-08-05 06:23:35 +00:00
fix: reduce version check frequency to startup only
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -933,8 +933,7 @@ async function runGitPull() {
|
|||||||
|
|
||||||
// Init
|
// Init
|
||||||
connect();
|
connect();
|
||||||
checkForUpdates();
|
checkForUpdates(); // Only check on startup
|
||||||
setInterval(checkForUpdates, 300000); // Check every 5 min
|
|
||||||
setInterval(() => { if (ws && ws.readyState === WebSocket.OPEN) ws.send('ping'); }, 8000);
|
setInterval(() => { if (ws && ws.readyState === WebSocket.OPEN) ws.send('ping'); }, 8000);
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
document.getElementById('stat-time').textContent = new Date().toLocaleTimeString('zh-CN');
|
document.getElementById('stat-time').textContent = new Date().toLocaleTimeString('zh-CN');
|
||||||
|
|||||||
Reference in New Issue
Block a user