diff --git a/lib/logs.js b/lib/logs.js index 2a9c6d165..f5847613d 100644 --- a/lib/logs.js +++ b/lib/logs.js @@ -11,7 +11,7 @@ const logsPath = path.resolve(dataPath, 'log') const DELIMITER_SIZE = 5 const MAX_SIZE = 100000 const MAX_LINES = 2000 -const ONE_MB = 1024 ** 2 +const ONE_MB = Math.pow(1024, 2) /** * Get the newest log files