fix: widen bounded collection discovery scan
This commit is contained in:
BIN
Binary file not shown.
+1
-1
@@ -8,7 +8,7 @@
|
||||
<!ENTITY pluginLOC "/boot/config/plugins/&name;">
|
||||
<!ENTITY emhttpLOC "/usr/local/emhttp/plugins/&name;">
|
||||
<!ENTITY txzURL "http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.24.r020-x86_64-1.txz">
|
||||
<!ENTITY txzSHA256 "ad4d2f0b8d52f4a7cea0ae99bf5c7f7aebedc60488bb8d88c70cf43beacdb538">
|
||||
<!ENTITY txzSHA256 "0b6ec06c05217942a407308c3271dd4d3ce0771d2ae859f7b4c8742307e7e882">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;"
|
||||
|
||||
@@ -266,7 +266,10 @@ function files_inventory(
|
||||
$queue = [[$root, '', 0]];
|
||||
$entries = [];
|
||||
$scanned = 0;
|
||||
$max_scanned = max(1000, min(100000, $max_entries * 50));
|
||||
// Discovery often needs to inspect many names while returning only a few
|
||||
// matching directories. Keep the scan bounded, but do not tie it too
|
||||
// tightly to the small result limit chosen for directory discovery.
|
||||
$max_scanned = max(25000, min(250000, $max_entries * 100));
|
||||
$truncated = false;
|
||||
|
||||
while ($queue) {
|
||||
|
||||
Reference in New Issue
Block a user