aMule Forum

English => aMule Help => Topic started by: gjn on January 13, 2004, 09:20:27 PM

Title: Other people's credits not counting
Post by: gjn on January 13, 2004, 09:20:27 PM
HI,

I have a user in my Q from which I downloaded several 100's of megs. Yet, he does not advance faster in my Q than other people from which i didn't downloaded anything. I watched the Q for hours now. The details dialog shows the megs, I saw them coming, yet the rating in the Q for this user is still 100...

What did I miss? Does amule not work with credits?

I certainly would like to give this pal some megs back...

(Note: priority system works in the Q)
Title: RE: Other people's credits not counting
Post by: KingFish on January 13, 2004, 09:28:02 PM
Hi, I'm not an aMule dev, but maybe I can help.. Have you checked your ~/.eMule file for the setting of "UseCreditSystem=1"? Is it 0? Well, that would be the only cause I know about.
Else, the credits might "outdate", like the transfer was to long ago or in another aMule session.. But as I said, I'm no dev and I don't know about the exact implementation. But aMule fully supports credits system!
Title: RE: Other people's credits not counting
Post by: gjn on January 13, 2004, 09:46:21 PM
UseCreditSystem is set to 1.

The upload is quite recent. In fact, I'm downloading from this user right now.

Anything else?
Title: Re: Other people's credits not counting
Post by: deltaHF on January 14, 2004, 12:29:58 AM
shared files priority maybe ?
Title: Re: Other people's credits not counting
Post by: gjn on January 14, 2004, 10:53:37 AM
don't think so. the observation i made was on the same file in the Q. In fact, shared files prority works as expected in the Q.

All users just have a rating of 100 in the Q, no matter how much I downloaded from them
Title: Re: Other people's credits not counting
Post by: gjn on January 14, 2004, 03:26:55 PM
finally, went through the source code a bit. I think it's a bug.

Look up CUpDownClient::GetScore , the credits don't get into account at all.

On a side note: this GetScore function is not used properly throughout the programm. for example in ClientDetailDialog.cpp  in the OnInitDialog function, the first parameter of the functions is 'isdownloading' but the function assumes this as second parameter....

I could patch this up if you care, but not until next week....and I should know how the credits are calculated against the other options (file prio, time in queue). Maybe I'll look up in xmule and/or emule.

In any case, the GetScore function should be changed in order for the credits system to work. Right now it doesn't, and this goes against file-sharing philosophy, ain't it? How are credits calculated for the QR in xmule or emule?
Title: Re: Other people's credits not counting
Post by: gjn on January 14, 2004, 03:38:10 PM
i looked it up in emule. basically, the return value is just multiplicated with the GetScoreRatio of the credits...but only if the credits system is activated in the settings.

i'll change that for me and recompile. if you guys want a patch, just say how i could submit it.
Title: Re: Other people's credits not counting
Post by: deltaHF on January 14, 2004, 05:13:33 PM
if it work for u, why not.. we r open for patches ;)
thx for tracking!
Title: Re: Other people's credits not counting
Post by: deltaHF on January 16, 2004, 05:16:18 PM
fixed in cvs :)
thx gjn