Author: toad
Date: 2008-04-11 20:21:40 +0000 (Fri, 11 Apr 2008)
New Revision: 19205

Modified:
   trunk/freenet/src/freenet/client/FECCodec.java
Log:
Comments

Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java      2008-04-11 20:20:47 UTC 
(rev 19204)
+++ trunk/freenet/src/freenet/client/FECCodec.java      2008-04-11 20:21:40 UTC 
(rev 19205)
@@ -362,7 +362,9 @@
                if(now - lastPolledMaxRunningFECThreads < 5*60*1000) return 
maxRunningFECThreads;
                String osName = System.getProperty("os.name");
                if(osName.indexOf("Windows") != -1 && 
(osName.toLowerCase().indexOf("mac os x") > 0) || 
(!NativeThread.usingNativeCode())) {
-                       maxRunningFECThreads = 1; // OS/X niceness is really 
weak, so we don't want any more background CPU load than necessary
+                       // OS/X niceness is really weak, so we don't want any 
more background CPU load than necessary
+                       // Also, on non-Windows, we need the native threads 
library to be working.
+                       maxRunningFECThreads = 1;
                } else {
                        // Most other OSs will have reasonable niceness, so go 
by RAM.
                        Runtime r = Runtime.getRuntime();


Reply via email to