mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 09:45:30 +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
|
||||
if ($size = curl_getinfo($request, CURLINFO_SIZE_DOWNLOAD))
|
||||
{
|
||||
$size = round( // float
|
||||
$size
|
||||
);
|
||||
|
||||
$data['size'] = $size;
|
||||
|
||||
} else continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue