From 0be5852cd5c2c1cac5c8f8fed6ceee8556663603 Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Fri, 19 Mar 2021 16:15:34 +0800 Subject: [PATCH] fix seeding leeching status --- nexus/Torrent/Torrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus/Torrent/Torrent.php b/nexus/Torrent/Torrent.php index 060de332..9fdfd219 100644 --- a/nexus/Torrent/Torrent.php +++ b/nexus/Torrent/Torrent.php @@ -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';