Skip to content

Commit

Permalink
Fix: number of processor available for multithreading
Browse files Browse the repository at this point in the history
  • Loading branch information
scandinave committed Nov 9, 2018
1 parent 3409873 commit a38b516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info/scandi/epd/controller/DownloadController.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public DownloadController(String filename, IDownloadView view) throws FileNotFou
}

public void downloadPlugins() {
ExecutorService service = Executors.newFixedThreadPool(8);
ExecutorService service = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
this.appModel.getPlugins().forEach(plugin -> {
Runnable r = () -> {
plugin.download(this.appModel.getPluginDir(), this.appModel.getEclipseDir(),
Expand Down

0 comments on commit a38b516

Please sign in to comment.