From de8150c165857ff3d9ed022f4a114f06367257e2 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 6 Jan 2025 16:47:24 +0700 Subject: [PATCH] Update build_stats.php --- library/includes/datastore/build_stats.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/includes/datastore/build_stats.php b/library/includes/datastore/build_stats.php index bd8ef8a4e..1c3c178d8 100644 --- a/library/includes/datastore/build_stats.php +++ b/library/includes/datastore/build_stats.php @@ -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