1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

[cleanup] fix threshold computation

This commit is contained in:
Martin Oberhuber 2009-02-06 09:32:53 +00:00
parent d2da4a8981
commit d775569a41

View file

@ -43,7 +43,7 @@ public class MemoryManager {
String thresholdString = System.getProperty("search.threshold"); //$NON-NLS-1$
double threshold = 0.8;
if(thresholdString != null && thresholdString.length() > 0) {
threshold = (long) (Integer.parseInt(thresholdString) / 100);
threshold = Integer.parseInt(thresholdString) / 100.0;
}
// do we have java 1.5?