viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/src/executables/QueueServer.php b/src/executables/QueueServer.php index 4b8bd7b04..2bfaff5a3 100644 --- a/src/executables/QueueServer.php +++ b/src/executables/QueueServer.php @@ -1528,8 +1528,8 @@ class QueueServer implements CrawlConstants if (!$is_double && (!$close_exists || strcmp($state, "1") != 0) && $this->crawl_time != $timestamp) { - L\crawlLog("Properly closing Index with Timestamp ". - $timestamp. "."); + L\crawlLog("Properly closing Index with Timestamp " . + $timestamp . "."); $index_archive = new IndexDocumentBundle($dir, false, null, C\NUM_DOCS_PER_PARTITION); touch($this->crawl_status_file_name, time()); diff --git a/src/library/index_bundle_iterators/IndexBundleIterator.php b/src/library/index_bundle_iterators/IndexBundleIterator.php index 4042566e0..adb9dc6e5 100644 --- a/src/library/index_bundle_iterators/IndexBundleIterator.php +++ b/src/library/index_bundle_iterators/IndexBundleIterator.php @@ -336,7 +336,7 @@ abstract class IndexBundleIterator implements CrawlConstants $number_of_partitions - $num_seen_partitions : $num_seen_partitions - 1; $rank_and_bonuses = ($remaining_partitions * - $this->avg_items_per_partition)/ + $avg_items_per_partition)/ (($number_of_partitions + 1) * ($avg_items_per_partition + 1)) + $last_partition_pos / $max_items_per_partition;