Skip to content

Commit

Permalink
Don't show thread count in sync mode
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfyScript committed Aug 24, 2024
1 parent 464042b commit 2150ee6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ public void load() {
*/
api.getConsole().info("- - - - [Local Storage] - - - -");
int processors = Math.min(Runtime.getRuntime().availableProcessors(), dataSettings.maxProcessors());
customCrafting.getLogger().info(PREFIX + "Using " + processors + " threads");
if (dataSettings.sync()) {
customCrafting.getLogger().info(PREFIX + "Loading data synchronously");
} else {
customCrafting.getLogger().info(PREFIX + "Using " + processors + " threads");
}
executor = Executors.newWorkStealingPool(processors);
api.getConsole().info(PREFIX + "Looking through data folder...");
Expand Down

0 comments on commit 2150ee6

Please sign in to comment.