Kaynağa Gözat

优化日志获取

hl 7 ay önce
ebeveyn
işleme
9748ec51d9
1 değiştirilmiş dosya ile 0 ekleme ve 5 silme
  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;