clean up add log

This commit is contained in:
xiaomlove
2021-03-12 20:50:55 +08:00
parent cf301fef89
commit 882d677960
2 changed files with 485 additions and 395 deletions
+483 -394
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -220,7 +220,7 @@ else // continue an existing session
{
$upthis = $trueupthis = max(0, $uploaded - $self["uploaded"]);
$downthis = $truedownthis = max(0, $downloaded - $self["downloaded"]);
$announcetime = ($self["seeder"] == "yes" ? "seedtime = seedtime + $self[announcetime]" : "leechtime = leechtime + $self[announcetime]");
$announcetime = ($self["seeder"] == "yes" ? "seedtime = seedtime + {$self['announcetime']}" : "leechtime = leechtime + {$self['announcetime']}");
$is_cheater = false;
if ($cheaterdet_security){
@@ -229,6 +229,7 @@ else // continue an existing session
$is_cheater = check_cheater($userid, $torrent['id'], $upthis, $downthis, $self['announcetime'], $torrent['seeders'], $torrent['leechers']);
}
}
do_log("upthis: $upthis, downthis: $downthis, announcetime: $announcetime, is_cheater: $is_cheater");
if (!$is_cheater && ($trueupthis > 0 || $truedownthis > 0))
{