Minor tweaks CrawlController

Chris Pollett [2023-08-27 07:Aug:th]
Minor tweaks CrawlController
Filename
src/controllers/CrawlController.php
diff --git a/src/controllers/CrawlController.php b/src/controllers/CrawlController.php
index 9d1d287e2..fd87fa865 100644
--- a/src/controllers/CrawlController.php
+++ b/src/controllers/CrawlController.php
@@ -306,13 +306,13 @@ class CrawlController extends Controller implements CrawlConstants
         list($crawl_params,
             $seed_info) = unserialize(L\webdecode($_REQUEST["arg"]));
         $seed_info['seed_sites']['url'] =
-            L\partitionByHash(($seed_info['seed_sites']['url'] ?? ""),
+            L\partitionByHash(($seed_info['seed_sites']['url'] ?? []),
                 null, $num, $i, C\NS_LIB . "UrlParser::getHost");
         if (isset($_REQUEST["fqs_ratio"])) {
             $fetcher_queue_server_ratio = $this->clean($_REQUEST["fqs_ratio"],
                 "int");
         } else {
-            $fetcher_queue_server_ratio = 0;
+            $fetcher_queue_server_ratio = 1;
         }
         $this->model("crawl")->sendStartCrawlMessage($crawl_params, $seed_info,
             null, $num_fetchers, $fetcher_queue_server_ratio);
ViewGit