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:
co-authored by
Claude Sonnet 4.6
parent
eeae08de1a
commit
6bac6aa84c
@@ -215,8 +215,8 @@
|
|||||||
</p>
|
</p>
|
||||||
<div class="mtr-form">
|
<div class="mtr-form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="pkt-count">Packet count (1–20)</label>
|
<label for="pkt-count">Packet count (1–100)</label>
|
||||||
<input type="number" id="pkt-count" value="5" min="1" max="20">
|
<input type="number" id="pkt-count" value="5" min="1" max="100">
|
||||||
</div>
|
</div>
|
||||||
<button class="btn" id="mtr-btn" onclick="runMtr()">Run MTR</button>
|
<button class="btn" id="mtr-btn" onclick="runMtr()">Run MTR</button>
|
||||||
<span class="spinner" id="mtr-spinner"></span>
|
<span class="spinner" id="mtr-spinner"></span>
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
<strong>Interval</strong> to <code class="code-inline">1000 ms</code>.
|
<strong>Interval</strong> to <code class="code-inline">1000 ms</code>.
|
||||||
</li>
|
</li>
|
||||||
<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>
|
||||||
<li>
|
<li>
|
||||||
Click <strong>Export TEXT</strong> to save the results, then share them with your support team.
|
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
|
// Validate input
|
||||||
const countInput = document.getElementById('pkt-count');
|
const countInput = document.getElementById('pkt-count');
|
||||||
const count = parseInt(countInput.value, 10);
|
const count = parseInt(countInput.value, 10);
|
||||||
if (isNaN(count) || count < 1 || count > 20) {
|
if (isNaN(count) || count < 1 || count > 100) {
|
||||||
statusEl.innerHTML = '<span class="status-tag tag-error">Packet count must be 1–20</span>';
|
statusEl.innerHTML = '<span class="status-tag tag-error">Packet count must be 1–100</span>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ from threading import Lock
|
|||||||
from urllib.parse import parse_qs, urlparse
|
from urllib.parse import parse_qs, urlparse
|
||||||
|
|
||||||
# ── Constants ──────────────────────────────────────────────────────────────────
|
# ── Constants ──────────────────────────────────────────────────────────────────
|
||||||
MAX_PACKET_COUNT = 20
|
MAX_PACKET_COUNT = 100
|
||||||
MIN_PACKET_COUNT = 1
|
MIN_PACKET_COUNT = 1
|
||||||
DEFAULT_PACKET_COUNT = 5
|
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_WINDOW = 60 # seconds
|
||||||
RATE_LIMIT_MAX = 3 # requests per window per IP
|
RATE_LIMIT_MAX = 3 # requests per window per IP
|
||||||
MTR_BIN = "/usr/bin/mtr"
|
MTR_BIN = "/usr/bin/mtr"
|
||||||
|
|||||||
Reference in New Issue
Block a user