fix seeding leeching status

This commit is contained in:
xiaomlove
2021-03-19 16:15:34 +08:00
parent e1f952470c
commit 0be5852cd5
+1 -1
View File
@@ -32,7 +32,7 @@ class Torrent
$id = $row['torrentid']; $id = $row['torrentid'];
$activeStatus = 'inactivity'; $activeStatus = 'inactivity';
if (isset($peerList[$id])) { if (isset($peerList[$id])) {
if ($peerList[$id]['to_go'] == 0) { if ($peerList[$id] == 0) {
$activeStatus = 'seeding'; $activeStatus = 'seeding';
} else { } else {
$activeStatus = 'leeching'; $activeStatus = 'leeching';