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 {

Name: {$data['name']} | Date: {$data['date']} | Size: {$data['size']}

- Created by: {$data['client']} +

Created by: {$data['client']}


@@ -200,7 +200,7 @@ sup { BTMR hash ? - BitTorrent Merkle Root is a hash of a file embedded in torrents with BitTorrent v2 support, tracker users can extract, calculate them, and download deduplicated torrents using desktop tools such as + BitTorrent Merkle Root is a hash of a file embedded in torrents with BitTorrent v2 support, tracker users can extract, calculate them, also download deduplicated torrents using desktop tools such as Torrent Merkle Root Reader.