diff --git a/assets/diagnostics/index.html b/assets/diagnostics/index.html index 0b4fdb6..d135002 100644 --- a/assets/diagnostics/index.html +++ b/assets/diagnostics/index.html @@ -215,8 +215,8 @@

- - + +
@@ -277,7 +277,7 @@ Interval to 1000 ms.
  • - Click Start and let it run for at least 60 seconds (100+ packets). + Click Start and let it run for at least 300 packets (about 5 minutes).
  • Click Export TEXT to save the results, then share them with your support team. @@ -311,8 +311,8 @@ async function runMtr() { // Validate input const countInput = document.getElementById('pkt-count'); const count = parseInt(countInput.value, 10); - if (isNaN(count) || count < 1 || count > 20) { - statusEl.innerHTML = 'Packet count must be 1–20'; + if (isNaN(count) || count < 1 || count > 100) { + statusEl.innerHTML = 'Packet count must be 1–100'; return; } diff --git a/assets/diagnostics/mtr-backend.py b/assets/diagnostics/mtr-backend.py index 5c763b2..019117c 100644 --- a/assets/diagnostics/mtr-backend.py +++ b/assets/diagnostics/mtr-backend.py @@ -20,10 +20,10 @@ from threading import Lock from urllib.parse import parse_qs, urlparse # ── Constants ────────────────────────────────────────────────────────────────── -MAX_PACKET_COUNT = 20 +MAX_PACKET_COUNT = 100 MIN_PACKET_COUNT = 1 DEFAULT_PACKET_COUNT = 5 -MTR_TIMEOUT = 90 # seconds: mtr max run time +MTR_TIMEOUT = 360 # seconds: mtr max run time (100 packets × ~3s margin) RATE_LIMIT_WINDOW = 60 # seconds RATE_LIMIT_MAX = 3 # requests per window per IP MTR_BIN = "/usr/bin/mtr"