diff --git a/include/constants.php b/include/constants.php index b991ef23..be1aa4b8 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ $announce_wait) && (TIMENOW - $torrent['ts']) >= ($anninterthreeage * 86400)) -$real_annnounce_interval = $anninterthree; +$real_annnounce_interval = mt_rand($announce_two_end, $announce_three_end); elseif ($annintertwoage && ($annintertwo > $announce_wait) && (TIMENOW - $torrent['ts']) >= ($annintertwoage * 86400)) -$real_annnounce_interval = $annintertwo; +$real_annnounce_interval = mt_rand($announce_one_end, $announce_two_end); //$resp = "d" . benc_str("interval") . "i" . $real_annnounce_interval . "e" . benc_str("min interval") . "i" . $announce_wait . "e". benc_str("complete") . "i" . $torrent["seeders"] . "e" . benc_str("incomplete") . "i" . $torrent["leechers"] . "e" . benc_str("peers"); $rep_dict = [