-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
> Does the code correctly handle rank upgrades? Downgrades?
Yes, it does.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFImGRHmY5qNqKdYw0RAuiTAJ4yW+kWhBRxu1dvJF8rHYPtJnB64wCfcknA
A6wAzK8Wj7xxlPoUpk3uuOs=
=6jZg
-----END PGP SIGNATURE-----