Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 12th December 2008, 20:51
Jigsaw4 Jigsaw4 is offline
Member
 
Join Date: Oct 2008
Posts: 11
Exclamation BUG:I have a serious problem
The problem is that in about 10 minutes when autocleanup is executed I have 0 seeders and 0 leecher and it's updating when I update my client!Plz help me I use this source :YunaScatari.v2.0.PRE7.RC2.1
Reply With Quote
  #2  
Old 15th December 2008, 20:47
dezza's Avatar
dezza dezza is offline
Senior Member
 
Join Date: Oct 2008
Posts: 53
Default
Is cleanup time less than announce-time?

Look in your settings.
__________________
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
  #3  
Old 15th December 2008, 21:11
Jigsaw4 Jigsaw4 is offline
Member
 
Join Date: Oct 2008
Posts: 11
Default
Announce Interval? 1800
Auto Clean Interval? 900
Reply With Quote
  #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
  #5  
Old 15th December 2008, 21:46
Jigsaw4 Jigsaw4 is offline
Member
 
Join Date: Oct 2008
Posts: 11
Default
Here is my cleanup.php .Plz do it for me...THX
Attached Files
File Type: php cleanup.php (13.0 KB, 2 views)
Reply With Quote
  #6  
Old 15th December 2008, 21:58
dezza's Avatar
dezza dezza is offline
Senior Member
 
Join Date: Oct 2008
Posts: 53
Default
Tell the difference yourself lazy ..

I'm not your callsupport .. If you want someone to do it for you pay them ..
__________________
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
  #7  
Old 15th December 2008, 22:12
Jigsaw4 Jigsaw4 is offline
Member
 
Join Date: Oct 2008
Posts: 11
Default
I'm not lazy I just want to make a perfect tracker but I don't know how to do this little thing!And if U don't want to help than other's will help
Reply With Quote
  #8  
Old 15th December 2008, 22:40
Kotafi Kotafi is offline
Senior Member
 
Join Date: Jan 2008
Posts: 139
Default
well, u should be able todo those things if your'e thinking of running a tracker.
dezza give you some snippets to look for in the cleanup so maybe try that?

not sure if it works strait up cos mine if diffrent from dezza's

i have it like this:
Code:
	$deadtime = deadtime();
	sql_query("DELETE FROM peers WHERE last_action < $deadtime");
	if ($snatchmod == 'yes') sql_query("UPDATE snatched SET seeder='no' WHERE seeder='yes' AND last_action < FROM_UNIXTIME($deadtime)");
	$deadtime = $deadtime - $max_dead_torrent_time;
	sql_query("UPDATE torrents SET visible='no' WHERE visible='yes' AND last_action < $deadtime");
Reply With Quote
  #9  
Old 16th December 2008, 08:35
Jigsaw4 Jigsaw4 is offline
Member
 
Join Date: Oct 2008
Posts: 11
Default
It's not working....
Reply With Quote
Reply

Tags
bugi , problem , serious

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:26. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.