Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 24th October 2008, 18:41
dezza's Avatar
dezza dezza is offline
Senior Member
 
Join Date: Oct 2008
Posts: 53
Exclamation BUG: Peers not subtracted after deleting torrent
A friend of mine reported this, and we're having internal tests on the newest RC2.1 BoLaMn release, we've fixed several bugs so far and we're interested in sharing these fixes as we keep a log of changes, have you applied several fixes yourself, then you can write to me here and I will share them with you if you're a coder..

THE PROBLEM is that after deleting a torrent it doesn't subtract the peers (both leechers and seeders)
This doesn't show in browse, only these stats.

Name:  pantunghehe.JPG
Views: 86
Size:  11.9 KB

Name:  pantunghuhu.JPG
Views: 87
Size:  7.3 KB

And I prefer if everyone will append BUG: to their bugreports and bug to the thread tags instead of screaming "HEEELP OH FAAACK HELP ME WITH STAFF.PHP!!!" or "FIX MY FORUM PLZ PLZ NEED CODER" in this way we can quickly fix up our code when there's a solution, then you can append [SOLVED]

I'm not home right now, but when I come home I will look for a solution and post it here!

What about creating a sticky "known-bugs" list with fixes in it ?
Reply With Quote
  #2  
Old 24th October 2008, 22:30
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
Open cleanup.php -> Go to line 101

Replace this:

Code:
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime)");
With this:

Code:
 sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime)") or sqlerr(__FILE__,__LINE__);
Reply With Quote
  #3  
Old 25th October 2008, 15:36
dezza's Avatar
dezza dezza is offline
Senior Member
 
Join Date: Oct 2008
Posts: 53
Default
It is not when torrents become dead because of no seeders, it is when a administrator DELETES a torrent!

I already have applied the line you gave me before you wrote it here!


UPDATE:


/deltorrent.php

Add this with the other SQL queries.
PHP Code:
sql_query("DELETE FROM peers WHERE torrent IN (" implode(", "array_map("sqlesc"$_POST["delete"])) . ")") or sqlerr(__FILE__,__LINE__); 
Seems only to happen when you use the DELETE button at the bottom in browse.php
Reply With Quote
Reply

Tags
bug , leeching , stopping , torrent

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Today torrent and last week torrent tsse5.6 Claude33 Template Shares 2 18th May 2010 19:29



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