From dca283bc18e687fb228e33073b972a928d85100e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Mon, 23 Oct 2023 00:11:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BA=BF=E7=A8=8B=E6=95=B0=E6=94=B9?= =?UTF-8?q?=E4=B8=BA8=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/kwan/springbootkwan/utils/FileContainsUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java index 0bf92dc..763c4bc 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)) -- GitLab