Counter is not precise (#1360)

This commit is contained in:
Cønstantine Kovalensky 2024-01-30 18:16:33 +04:00 committed by GitHub
commit ae613c9c70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ $data = [
'client' => !empty($creator = $torrent->getCreatedBy()) ? htmlCHR(substr($creator, 0, 20)) : 'unknown client', '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', '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), 'size' => humn_size($row['size'], 2),
'file_count' => $files->count(), 'file_count' => iterator_count($files),
'site_url' => FULL_URL, 'site_url' => FULL_URL,
'topic_url' => TOPIC_URL . $topic_id, 'topic_url' => TOPIC_URL . $topic_id,
]; ];
@ -189,7 +189,7 @@ sup {
<center> <center>
<h2 style="color: #b3b3b3; font-family: Monospace;">Name: {$data['name']} | Date: {$data['date']} | Size: {$data['size']}</h2> <h2 style="color: #b3b3b3; font-family: Monospace;">Name: {$data['name']} | Date: {$data['date']} | Size: {$data['size']}</h2>
<p> <p>
<i>Created by: {$data['client']}</i> <p style= "font-family:Calibri;">Created by: <i title="Torrent client's name">{$data['client']}</i></p>
</p> </p>
<hr> <hr>
<table> <table>
@ -200,7 +200,7 @@ sup {
BTMR hash BTMR hash
<sup>? <sup>?
<span class="tooltiptext"> <span class="tooltiptext">
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
<a href="https://github.com/kovalensky/tmrr" target="_blank" referrerpolicy="origin">Torrent Merkle Root Reader.</a> <a href="https://github.com/kovalensky/tmrr" target="_blank" referrerpolicy="origin">Torrent Merkle Root Reader.</a>
</span> </span>
</sup> </sup>