aMule Bug Tracker - aMule
View Issue Details
0001375aMuleExternal Connpublic2008-08-10 04:342009-01-18 21:33
Bandeira 
 
normalfeatureN/A
feedbackopen 
2.2.2 
 
Any
0001375: Fix for UP boost
// Fix boost for UploadClient.cpp

{
                case PR_POWERSHARE: //added for powershare (deltaHF)
                filepriority = 2500;
                break; //end
            case PR_VERYHIGH:
                filepriority = 32;
                break;
            case PR_HIGH:
                filepriority = 18;
                break;
            case PR_LOW:
                filepriority = 6;
                break;
            case PR_VERYLOW:
                filepriority = 2;
                break;
            case PR_NORMAL:
            default:
                filepriority = 12;
                break;
        }
        
/* I made some comparisons these were the values that I had better results.
*
* Best regards.
*
* Cabral Bandeira. root@bitnew.net
*/
No tags attached.
Issue History
2008-08-10 04:34BandeiraNew Issue
2008-08-10 04:34BandeiraOperating System => Any
2009-01-10 18:18BandeiraNote Added: 0003043
2009-01-17 22:50WuischkeNote Added: 0003060
2009-01-17 22:50WuischkeStatusnew => feedback
2009-01-18 21:33BandeiraNote Added: 0003063

Notes
(0003043)
Bandeira   
2009-01-10 18:18   
And best options for credits.



    if (GetDownloadedTotal() < 2048000) {
        return 1.0f;
    }
    
    float result = 0.0f;
    if (!GetUploadedTotal()) {
        result = 10.0f;
    } else {
        result = (GetDownloadedTotal() * 2.0f) / GetUploadedTotal();
    }
    
    float result2 = sqrt((GetDownloadedTotal() / 1024000) + 2.0f);
    if (result > result2) {
        result = result2
(0003060)
Wuischke   
2009-01-17 22:50   
I'm inclined just to say "no", but to be fair: What changes did you made? And why are they better than the default?
(0003063)
Bandeira   
2009-01-18 21:33   
Hi Wuischke.

Who has credit rises faster in the queue, having a better balance download/upload.

And with an option to remove users who are in a long queue upload. Ex: remove users after 1 or more hours of waiting.

Because he who has no credit can not download, is only in the queue.