From 26e84326173fc01f68a0420031eab7fe359c3921 Mon Sep 17 00:00:00 2001 From: naconner <7396812+naconner@users.noreply.github.com> Date: Fri, 2 Oct 2020 16:50:05 -0400 Subject: [PATCH] fix: maintain compatibility with node 6 --- lib/logs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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