mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
update the criteria for becoming a cheater
This commit is contained in:
@@ -68,8 +68,8 @@ function check_cheater($userid, $torrentid, $uploaded, $downloaded, $anctime, $s
|
||||
|
||||
$time = date("Y-m-d H:i:s");
|
||||
$upspeed = ($uploaded > 0 ? $uploaded / $anctime : 0);
|
||||
$mustBeCheaterSpeed = 1024 * 1024 * 100; //100 MB/s
|
||||
$mayBeCheaterSpeed = 1024 * 1024 * 50; //50 MB/s
|
||||
$mustBeCheaterSpeed = 1024 * 1024 * 1000; //1000 MB/s
|
||||
$mayBeCheaterSpeed = 1024 * 1024 * 100; //100 MB/s
|
||||
|
||||
if ($uploaded > 1073741824 && $upspeed > ($mustBeCheaterSpeed/$cheaterdet_security)) //Uploaded more than 1 GB with uploading rate higher than 100 MByte/S (For Consertive level). This is no doubt cheating.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user