Author: toad
Date: 2007-09-21 15:43:40 +0000 (Fri, 21 Sep 2007)
New Revision: 15233

Modified:
   trunk/freenet/src/freenet/client/async/USKFetcher.java
Log:
Tweak priority of USK fetchers - UPDATE class *iff* first iteration or have 
recently advanced, otherwise PREFETCH priority class (i.e. very low)

Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKFetcher.java      2007-09-21 
15:42:10 UTC (rev 15232)
+++ trunk/freenet/src/freenet/client/async/USKFetcher.java      2007-09-21 
15:43:40 UTC (rev 15233)
@@ -165,9 +165,10 @@
                        if(backgroundPoll) {
                                if(minFailures == origMinFailures && 
minFailures != maxMinFailures) {
                                        // Either just started, or just 
advanced, either way boost the priority.
-                                       return 
RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS;
+                                       return 
RequestStarter.UPDATE_PRIORITY_CLASS;
+                               } else {
+                                       return 
RequestStarter.PREFETCH_PRIORITY_CLASS;
                                }
-                               return RequestStarter.UPDATE_PRIORITY_CLASS;
                        } else
                                return parent.getPriorityClass();
                }


Reply via email to