fix seeding leeching status

This commit is contained in:
xiaomlove
2021-03-19 16:15:34 +08:00
parent e1f952470c
commit 0be5852cd5

View File

@@ -32,7 +32,7 @@ class Torrent
$id = $row['torrentid'];
$activeStatus = 'inactivity';
if (isset($peerList[$id])) {
if ($peerList[$id]['to_go'] == 0) {
if ($peerList[$id] == 0) {
$activeStatus = 'seeding';
} else {
$activeStatus = 'leeching';