diff --git a/assets/diagnostics/index.html b/assets/diagnostics/index.html
index 65d8d54..8a8443e 100644
--- a/assets/diagnostics/index.html
+++ b/assets/diagnostics/index.html
@@ -207,20 +207,20 @@
Speed Test
Runs directly between your browser and this server — no external connections.
- Download: 100 MB test file. Upload: 25 MB payload.
+ Download: 512 MB test file. Upload: 512 MB payload.
↓ Download
—
Mbps
-
+
512 MB file
↑ Upload
—
Mbps
-
+
512 MB payload
Start Speed Test
@@ -395,7 +395,7 @@ async function runSpeedTest() {
status.innerHTML = 'Testing download… ';
const mbps = await measureDownload();
document.getElementById('dl-speed').textContent = mbps.toFixed(1);
- document.getElementById('dl-note').textContent = '100 MB file';
+ document.getElementById('dl-note').textContent = '512 MB file';
} catch(e) {
document.getElementById('dl-speed').textContent = 'ERR';
}
@@ -405,7 +405,7 @@ async function runSpeedTest() {
status.innerHTML = 'Testing upload… ';
const mbps = await measureUpload();
document.getElementById('ul-speed').textContent = mbps.toFixed(1);
- document.getElementById('ul-note').textContent = '25 MB payload';
+ document.getElementById('ul-note').textContent = '512 MB payload';
} catch(e) {
document.getElementById('ul-speed').textContent = 'ERR';
}
@@ -415,7 +415,7 @@ async function runSpeedTest() {
}
async function measureDownload() {
- const url = '__DIAG_PATH__testfiles/test-100m.bin?t=' + Date.now();
+ const url = '__DIAG_PATH__testfiles/test-512m.bin?t=' + Date.now();
const start = performance.now();
const resp = await fetch(url, { cache: 'no-store' });
const reader = resp.body.getReader();
@@ -432,7 +432,7 @@ async function measureDownload() {
}
async function measureUpload() {
- const size = 25 * 1024 * 1024;
+ const size = 512 * 1024 * 1024;
const data = new Uint8Array(size);
const start = performance.now();
const resp = await fetch('__DIAG_PATH__api/upload', {
diff --git a/x-ui-latest.sh b/x-ui-latest.sh
index 6b3eb8b..41cf91d 100644
--- a/x-ui-latest.sh
+++ b/x-ui-latest.sh
@@ -892,6 +892,7 @@ install_diagnostics() {
[[ -f "${testfiles}/test-15k.bin" ]] || dd if=/dev/zero bs=1024 count=15 of="${testfiles}/test-15k.bin" status=none
[[ -f "${testfiles}/test-17k.bin" ]] || dd if=/dev/zero bs=1024 count=17 of="${testfiles}/test-17k.bin" status=none
[[ -f "${testfiles}/test-100m.bin" ]] || dd if=/dev/zero bs=1048576 count=100 of="${testfiles}/test-100m.bin" status=none
+ [[ -f "${testfiles}/test-512m.bin" ]] || dd if=/dev/zero bs=1048576 count=512 of="${testfiles}/test-512m.bin" status=none
[[ -f "${testfiles}/test-1g.bin" ]] || dd if=/dev/zero bs=1048576 count=1024 of="${testfiles}/test-1g.bin" status=none
chown -R www-data:www-data "${diag_webroot}" 2>/dev/null || true