mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
fix size data type conversion
This commit is contained in:
parent
231b7be50d
commit
f8c8aacf95
1 changed files with 4 additions and 0 deletions
|
|
@ -298,6 +298,10 @@ foreach($index->search('')
|
||||||
// Update size or skip on empty
|
// Update size or skip on empty
|
||||||
if ($size = curl_getinfo($request, CURLINFO_SIZE_DOWNLOAD))
|
if ($size = curl_getinfo($request, CURLINFO_SIZE_DOWNLOAD))
|
||||||
{
|
{
|
||||||
|
$size = round( // float
|
||||||
|
$size
|
||||||
|
);
|
||||||
|
|
||||||
$data['size'] = $size;
|
$data['size'] = $size;
|
||||||
|
|
||||||
} else continue;
|
} else continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue