mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-26 16:15:32 -07:00
Update build_stats.php
This commit is contained in:
parent
87ec00e47a
commit
de8150c165
1 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,14 @@ if ($bb_cfg['tor_stats']) {
|
|||
$data['leechers'] = commify($row['leechers']);
|
||||
$data['peers'] = commify($row['seeders'] + $row['leechers']);
|
||||
$data['speed'] = $row['speed'];
|
||||
|
||||
// multitracker stat
|
||||
if ($bb_cfg['tracker']['multitracker']['enabled']) {
|
||||
$row = DB()->fetch_row("SELECT SUM(ext_seeders) AS multi_seeders, SUM(ext_leechers) AS multi_leechers FROM " . BB_BT_TORRENTS);
|
||||
$data['multi_seeders'] = commify($row['multi_seeders']);
|
||||
$data['multi_leechers'] = commify($row['multi_leechers']);
|
||||
$data['multi_peers'] = commify($row['multi_seeders'] + $row['multi_leechers']);
|
||||
}
|
||||
}
|
||||
|
||||
// gender stat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue