From dbb40c3b9190844a3f6bd9cbc04c8b000fb44168 Mon Sep 17 00:00:00 2001
From: lyg <1543117173@qq.com>
Date: 星期日, 09 六月 2024 16:05:26 +0800
Subject: [PATCH] 修复线程数错误

---
 src/main.mjs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main.mjs b/src/main.mjs
index 6e3dfee..0e897a6 100644
--- a/src/main.mjs
+++ b/src/main.mjs
@@ -446,7 +446,7 @@
   let finishCnt = 0;
   const finishBooks = [];
   const threadSize = config.threadSize;
-  const thBookSize = endRow - startRow / threadSize
+  const thBookSize = (endRow - startRow) / threadSize
   for (let sr = startRow; sr < endRow; sr += thBookSize) {
     let er = sr + thBookSize;
     if (er > endRow) {

--
Gitblit v1.9.1