View Single Post
  #4  
Old 15th December 2008, 21:37
dezza's Avatar
dezza dezza is offline
Senior Member
 
Join Date: Oct 2008
Posts: 53
Default
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 ..
__________________
PM for iNViTES to PREViEW my source based off Yuna Scatari, almost completely rewritten and all bugs fixed! Optimized announce.
http://primo-nordica.net


Folding@Home Stats - Team 163 (Linux)

IRC: dezza @ Freenode (#njlug, #archlinux, #archlinux.dk), P2P-Network (#primo-nordica, #primo-staff)
Reply With Quote