Author: toad
Date: 2009-04-02 18:12:08 +0000 (Thu, 02 Apr 2009)
New Revision: 26371
Modified:
trunk/freenet/src/freenet/client/FECQueue.java
Log:
Brackets in the right place - might affect calculation of max FEC threads on
windows?
Modified: trunk/freenet/src/freenet/client/FECQueue.java
===================================================================
--- trunk/freenet/src/freenet/client/FECQueue.java 2009-04-02 17:38:52 UTC
(rev 26370)
+++ trunk/freenet/src/freenet/client/FECQueue.java 2009-04-02 18:12:08 UTC
(rev 26371)
@@ -356,7 +356,7 @@
if (maxRunningFECThreads != -1)
return maxRunningFECThreads;
String osName = System.getProperty("os.name");
- if(osName.indexOf("Windows") == -1 &&
(osName.toLowerCase().indexOf("mac os x") > 0) ||
(!NativeThread.usingNativeCode())) {
+ if(osName.indexOf("Windows") == -1 &&
((osName.toLowerCase().indexOf("mac os x") > 0) ||
(!NativeThread.usingNativeCode()))) {
// 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;
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs