From f8c8aacf95dd5c28cfa07b963d6930dc7aaac96d Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 1 Apr 2024 15:48:39 +0300 Subject: [PATCH] fix size data type conversion --- src/cli/document/crawl.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 7a562b5..13f3596 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -298,6 +298,10 @@ foreach($index->search('') // Update size or skip on empty if ($size = curl_getinfo($request, CURLINFO_SIZE_DOWNLOAD)) { + $size = round( // float + $size + ); + $data['size'] = $size; } else continue;