-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Toseland a ?crit :
> On Tuesday 05 August 2008 15:31, Julien Cornuwel wrote:
>> Matthew Toseland a ?crit :
>>
>>>> +                  if(trusterScore.getCapacity() > 0) {
>>>> +                          newScore += trusterScore.getCapacity() * 
>>>> trusterTrust.getValue() / 
> 100;
>>>> +                          if(newRank == -1 || newRank > 
>>>> trusterScore.getRank())
>>>> +                                  newRank = trusterScore.getRank();
>>> Surely this should be || newRank < trusterScore.getRank()? Larger numbers 
> =
>>> less trusted, right?
>> Nope, that code gets the lowest truster's capacity (most trusted),
>> different from -1.
> 
> You are fetching rank here, not capacity. Lower is better for rank (unless 
> it's -1). No?

That's right, how did my code happen to work with that ?!? Surely we'll
have to do more extensive testing later...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImIBGmY5qNqKdYw0RArP5AKDPlDdVeprwfMgapgoKWgCKQDTbMACeOdk0
WIIM9OMJKrSD3Zxf2Qv+Uoo=
=YXfX
-----END PGP SIGNATURE-----

Reply via email to