mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 10:25:32 +02:00
[cleanup] fix threshold computation
This commit is contained in:
parent
d2da4a8981
commit
d775569a41
1 changed files with 28 additions and 28 deletions
|
@ -43,7 +43,7 @@ public class MemoryManager {
|
||||||
String thresholdString = System.getProperty("search.threshold"); //$NON-NLS-1$
|
String thresholdString = System.getProperty("search.threshold"); //$NON-NLS-1$
|
||||||
double threshold = 0.8;
|
double threshold = 0.8;
|
||||||
if(thresholdString != null && thresholdString.length() > 0) {
|
if(thresholdString != null && thresholdString.length() > 0) {
|
||||||
threshold = (long) (Integer.parseInt(thresholdString) / 100);
|
threshold = Integer.parseInt(thresholdString) / 100.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// do we have java 1.5?
|
// do we have java 1.5?
|
||||||
|
|
Loading…
Add table
Reference in a new issue