mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
fix: torrent seeder/leecher count
This commit is contained in:
@@ -304,12 +304,14 @@ class ProcessAnnounce implements ShouldQueue
|
||||
->torrent
|
||||
->peers
|
||||
->where('left', '=', 0)
|
||||
->where('active', '=', true)
|
||||
->where('peer_id', '!=', $peerId)
|
||||
->count();
|
||||
$otherLeechers = $this
|
||||
->torrent
|
||||
->peers
|
||||
->where('left', '>', 0)
|
||||
->where('active', '=', true)
|
||||
->where('peer_id', '!=', $peerId)
|
||||
->count();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user