Explorar o código

优化日志获取

hl hai 7 meses
pai
achega
9748ec51d9
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      src/utils/file.js

+ 0 - 5
src/utils/file.js

@@ -199,11 +199,6 @@ async function readLinesFromEnd(filePath, maxLines) {
             if (lines.length >= maxLines) {
                 break;
             }
-
-            position -= chunkSize;
-            if (position < 0) {
-                position = 0;
-            }
         }
     } else {
         let forNum = (fileSize / chunkSize) + 1;