diff --git a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java index 0bf92dc1c13039bca22f4db299930d29a14e2c02..763c4bc30b2ca7a7378605be5d1e6396d19b65fc 100644 --- a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java +++ b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java @@ -81,7 +81,7 @@ public class FileContainsUtil { private static void moreThread(List> groupedPicNames, List isNotExist) { // 创建并启动4个线程来处理每个组的任务 List threads = new ArrayList<>(); - for (int i = 0; i < 6; i++) { + for (int i = 0; i < 8; i++) { final List group = groupedPicNames.get(i); Thread thread = new Thread(() -> { // 在这里执行处理图片组的任务 @@ -133,7 +133,7 @@ public class FileContainsUtil { * @return */ private static List> dataGroup(List picNames) { - int groupSize = picNames.size() / 6; // 计算每组的大小 + int groupSize = picNames.size() / 8; // 计算每组的大小 List> groupedPicNames = picNames.stream() .collect(Collectors.groupingBy(e -> picNames.indexOf(e) / groupSize))