From ae613c9c70dbc11968267a455081f6718fbd771e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Tue, 30 Jan 2024 18:16:33 +0400 Subject: [PATCH] Counter is not precise (#1360) --- filelist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filelist.php b/filelist.php index 42261a5e3..bc4b214d4 100644 --- a/filelist.php +++ b/filelist.php @@ -93,7 +93,7 @@ $data = [ 'client' => !empty($creator = $torrent->getCreatedBy()) ? htmlCHR(substr($creator, 0, 20)) : 'unknown client', 'date' => (!empty($dt = $torrent->getCreationDate()) && is_numeric($creation_date = $dt->getTimestamp())) ? date('d-M-Y H:i (e)', $creation_date) : 'unknown', 'size' => humn_size($row['size'], 2), - 'file_count' => $files->count(), + 'file_count' => iterator_count($files), 'site_url' => FULL_URL, 'topic_url' => TOPIC_URL . $topic_id, ]; @@ -189,7 +189,7 @@ sup {
- Created by: {$data['client']} +
Created by: {$data['client']}