Hmm, it's some time since I fixed this problem and I can't really remember what caused it..
I think you have to update your cleanup.php ..
PHP Code:
$deadtime = deadtime();
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime)");
$deadtime = $deadtime - $max_dead_torrent_time;
sql_query("UPDATE snatched SET seeder='no' WHERE seeder='yes' AND last_action < FROM_UNIXTIME($deadtime)");
sql_query("UPDATE torrents SET visible='no' WHERE visible='yes' AND last_action < $deadtime");
This is a snippet of what it should look like .. Rest of it is pure mathematics, follow the code and you will find out why it does like it does, that's how I figured it out .. Subtract the numbers and look at the result ..