totalngrams: default to cores - 2 threads
diff --git a/src/main/java/org/ids_mannheim/TotalNGram.java b/src/main/java/org/ids_mannheim/TotalNGram.java
index 7eadabd..b5019f1 100644
--- a/src/main/java/org/ids_mannheim/TotalNGram.java
+++ b/src/main/java/org/ids_mannheim/TotalNGram.java
@@ -22,7 +22,7 @@
public class TotalNGram implements Callable<Integer> {
static public final Logger logger;
- private static final int MAX_THREADS = Runtime.getRuntime().availableProcessors() * 2 / 3;
+ private static final int MAX_THREADS = Runtime.getRuntime().availableProcessors() - 2;
private static final String DEFAULT_LOGFILE = "totalngram.log";
static {