Просмотр исходного кода

下行 garbage.php 文件限制大小至 50M

MortyFx 4 лет назад
Родитель
Сommit
574c56ecce
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      backend/garbage.php
  2. 1 1
      speedtest_worker.js

+ 2 - 2
backend/garbage.php

@@ -18,8 +18,8 @@ function getChunkCount()
         return 4;
     }
 
-    if ((int) $_GET['ckSize'] > 1024) {
-        return 1024;
+    if ((int) $_GET['ckSize'] > 50) {
+        return 50;
     }
 
     return (int) $_GET['ckSize'];

+ 1 - 1
speedtest_worker.js

@@ -57,7 +57,7 @@ var settings = {
 	xhr_ignoreErrors: 1, // 0=fail on errors, 1=attempt to restart a stream if it fails, 2=ignore all errors
 	xhr_dlUseBlob: false, // if set to true, it reduces ram usage but uses the hard drive (useful with large garbagePhp_chunkSize and/or high xhr_dlMultistream)
 	xhr_ul_blob_megabytes: 20, //size in megabytes of the upload blobs sent in the upload test (forced to 4 on chrome mobile)
-	garbagePhp_chunkSize: 100, // size of chunks sent by garbage.php (can be different if enable_quirks is active)
+	garbagePhp_chunkSize: 50, // size of chunks sent by garbage.php (can be different if enable_quirks is active)
 	enable_quirks: true, // enable quirks for specific browsers. currently it overrides settings to optimize for specific browsers, unless they are already being overridden with the start command
 	ping_allowPerformanceApi: true, // if enabled, the ping test will attempt to calculate the ping more precisely using the Performance API. Currently works perfectly in Chrome, badly in Edge, and not at all in Firefox. If Performance API is not supported or the result is obviously wrong, a fallback is provided.
 	overheadCompensationFactor: 1.06, //can be changed to compensatie for transport overhead. (see doc.md for some other values)