mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Sort clients from higher to lower in tracker stats (#1073)
This commit is contained in:
parent
951cebe815
commit
6f89865f0c
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ if ($client_full || !$stats_cache = CACHE('tr_cache')->get('tracker_clients_stat
|
|||
$client_count++;
|
||||
}
|
||||
|
||||
arsort($clients, SORT_NUMERIC);
|
||||
foreach ($clients as $client => $count) {
|
||||
$percentage = number_format(($count / $client_count) * 100, 2);
|
||||
$clients_percentage[$client] = "[$count] => $percentage%";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue