Author: tommy
Date: 2008-02-26 16:13:17 +0000 (Tue, 26 Feb 2008)
New Revision: 18167

Modified:
   trunk/freenet/src/freenet/support/io/NativeThread.java
Log:
Fix check for number of nice levels

Modified: trunk/freenet/src/freenet/support/io/NativeThread.java
===================================================================
--- trunk/freenet/src/freenet/support/io/NativeThread.java      2008-02-26 
16:05:06 UTC (rev 18166)
+++ trunk/freenet/src/freenet/support/io/NativeThread.java      2008-02-26 
16:13:17 UTC (rev 18167)
@@ -42,7 +42,7 @@
                        //System.loadLibrary("NativeThread");
                        LibraryLoader.loadNative("/freenet/support/io/", 
"NativeThread");
                        NATIVE_PRIORITY_BASE = getLinuxPriority();
-                       NATIVE_PRIORITY_RANGE = 19 - NATIVE_PRIORITY_BASE;
+                       NATIVE_PRIORITY_RANGE = 20 - NATIVE_PRIORITY_BASE;
                        System.out.println("Using the NativeThread 
implementation (base nice level is "+NATIVE_PRIORITY_BASE+')');
                        // they are 3 main prio levels
                        HAS_THREE_NICE_LEVELS = NATIVE_PRIORITY_RANGE >= 3;


Reply via email to