Increase MTR max packets to 100, update WinMTR instruction to 300 packets

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ivan Razin
2026-06-24 11:27:48 +03:00
co-authored by Claude Sonnet 4.6
parent eeae08de1a
commit 6bac6aa84c
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -215,8 +215,8 @@
</p>
<div class="mtr-form">
<div class="form-group">
<label for="pkt-count">Packet count (120)</label>
<input type="number" id="pkt-count" value="5" min="1" max="20">
<label for="pkt-count">Packet count (1100)</label>
<input type="number" id="pkt-count" value="5" min="1" max="100">
</div>
<button class="btn" id="mtr-btn" onclick="runMtr()">Run MTR</button>
<span class="spinner" id="mtr-spinner"></span>
@@ -277,7 +277,7 @@
<strong>Interval</strong> to <code class="code-inline">1000 ms</code>.
</li>
<li>
Click <strong>Start</strong> and let it run for at least 60 seconds (100+ packets).
Click <strong>Start</strong> and let it run for at least <strong>300 packets</strong> (about 5 minutes).
</li>
<li>
Click <strong>Export TEXT</strong> 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 = '<span class="status-tag tag-error">Packet count must be 120</span>';
if (isNaN(count) || count < 1 || count > 100) {
statusEl.innerHTML = '<span class="status-tag tag-error">Packet count must be 1100</span>';
return;
}
+2 -2
View File
@@ -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"