1
0
mirror of https://github.com/torrentpier/torrentpier.git synced 2025-03-12 04:35:42 -07:00

List with numbers in tracker stats ()

This commit is contained in:
Cønstantine Kovalensky 2023-11-09 22:06:31 +04:00 committed by GitHub
parent 6757c75446
commit e3ad9041bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,8 +115,10 @@ if ($client_full || !$stats_cache = CACHE('tr_cache')->get('tracker_clients_stat
$clients_percentage = $stats_cache;
}
$n = 1;
foreach (array_slice($clients_percentage, 0, $numwant) as $client => $value) {
$client_list .= ($client_full) ? ("$client => $value<br>") : get_user_torrent_client($client) . " => $value<br>";
$client_list .= ($client_full) ? ("$client => $value<br>") : "$n. " . get_user_torrent_client($client) . " => $value<br>";
$n++;
}
function commify_callback($matches)