Author: toad
Date: 2008-05-07 13:15:02 +0000 (Wed, 07 May 2008)
New Revision: 19821

Modified:
   trunk/freenet/src/freenet/clients/http/QueueToadlet.java
Log:
Trivial refactor: Change 1 to INTERACTIVE_PRIORITY_CLASS (same value, just 
clearer)

Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2008-05-07 
13:13:54 UTC (rev 19820)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2008-05-07 
13:15:02 UTC (rev 19821)
@@ -679,7 +679,7 @@
                HTMLNode legendTable = legendContent.addChild("table", "class", 
"queue");
                HTMLNode legendRow = legendTable.addChild("tr");
                for(int i=0; i<7; i++){
-                       if(i > 1 || advancedModeEnabled || i <= 
lowestQueuedPrio)
+                       if(i > RequestStarter.INTERACTIVE_PRIORITY_CLASS || 
advancedModeEnabled || i <= lowestQueuedPrio)
                                legendRow.addChild("td", "class", "priority" + 
i, priorityClasses[i]);
                }

@@ -879,7 +879,7 @@
                priorityForm.addChild("input", new String[] { "type", "name", 
"value" }, new String[] { "hidden", "identifier", identifier });
                HTMLNode prioritySelect = priorityForm.addChild("select", 
"name", "priority");
                for (int p = 0; p < RequestStarter.NUMBER_OF_PRIORITY_CLASSES; 
p++) {
-                       if(p <= 1 && !advancedModeEnabled) continue;
+                       if(p <= RequestStarter.INTERACTIVE_PRIORITY_CLASS && 
!advancedModeEnabled) continue;
                        if (p == priorityClass) {
                                prioritySelect.addChild("option", new String[] 
{ "value", "selected" }, new String[] { String.valueOf(p), "selected" }, 
priorityClasses[p]);
                        } else {


Reply via email to