修改95带宽

This commit is contained in:
CN-JS-HuiBai
2026-04-04 21:56:28 +08:00
parent 47d25af469
commit 1f4bdb7970
3 changed files with 16 additions and 8 deletions

View File

@@ -59,8 +59,8 @@
closeLoginModal: document.getElementById('closeLoginModal'),
loginForm: document.getElementById('loginForm'),
loginError: document.getElementById('loginError'),
gaugesTime: document.getElementById('gaugesTime'),
footerTime: document.getElementById('footerTime')
footerTime: document.getElementById('footerTime'),
legendP95: document.getElementById('legendP95')
};
// ---- State ----
@@ -116,6 +116,15 @@
}
});
// P95 Toggle
if (dom.legendP95) {
dom.legendP95.addEventListener('click', () => {
networkChart.showP95 = !networkChart.showP95;
dom.legendP95.classList.toggle('disabled', !networkChart.showP95);
networkChart.draw();
});
}
// Check auth status
checkAuthStatus();
@@ -262,9 +271,6 @@
function updateGaugesTime() {
const clockStr = formatClock();
if (dom.gaugesTime) {
dom.gaugesTime.textContent = clockStr;
}
if (dom.footerTime) {
dom.footerTime.textContent = clockStr;
}