[freenet-dev] Huh?

Matthew Toseland toad at amphibian.dyndns.org
Tue May 29 00:11:01 UTC 2007


On Tuesday 29 May 2007 00:49, Juiceman wrote:
> Is this reversed?  Found many times in the Freenet code:
>
> 	try {
> 				priorityClass = Short.parseShort(priorityString, 10);
> 				if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) ||
> (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS))
> 					throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD,
> "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+"
> to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier, global);
> 			} catch (NumberFormatException e) {

No, this is the colloquial understanding of priority - maximum is 0, minimum 
is 6.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20070529/886edaf1/attachment.pgp 


More information about the Devl mailing list