mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
unify bonus calculation
This commit is contained in:
@@ -511,6 +511,11 @@ else
|
||||
|
||||
}
|
||||
|
||||
if (isset($event) && !empty($event)) {
|
||||
$updateset[] = 'seeders = ' . count_peer("torrent = $torrentid and to_go = 0");
|
||||
$updateset[] = 'leechers = ' . count_peer("torrent = $torrentid and to_go > 0");
|
||||
}
|
||||
|
||||
if (count($updateset)) // Update only when there is change in peer counts
|
||||
{
|
||||
$updateset[] = "visible = 'yes'";
|
||||
|
||||
Reference in New Issue
Block a user