We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c8e08c commit 26addb2Copy full SHA for 26addb2
thumbly-main/src/main/java/org/code13k/thumbly/Main.java
@@ -112,7 +112,7 @@ public static void main(String[] args) {
112
CacheInfo cacheInfo = AppConfig.getInstance().getCache();
113
String cacheDirectory = cacheInfo.getRootDirectory() + "/thumb";
114
long totalSizeOfThumbnailImages = AppConfig.getInstance().getCache().getTotalSizeOfThumbnailImages();
115
- int operatorCount = Math.max(1, Env.getInstance().getProcessorCount() / 2);
+ int operatorCount = Math.max(1, Env.getInstance().getProcessorCount() - 1);
116
CachedImageProcessor.getInstance().init(cacheDirectory, totalSizeOfThumbnailImages, operatorCount);
117
Thread.sleep(500);
118
} catch (Exception e) {
0 commit comments