From e1c4042d15569c4ef05bffd1d7dea916ad506b46 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 17 Jan 2023 10:16:55 +0000 Subject: [PATCH] Add units to constant --- src/settings/rageshake.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings/rageshake.ts b/src/settings/rageshake.ts index 268f2ac..446f036 100644 --- a/src/settings/rageshake.ts +++ b/src/settings/rageshake.ts @@ -48,7 +48,7 @@ const MAX_LOG_SIZE = 1024 * 1024 * 5; // 5 MB // Shortest amount of time between flushes. We are just appending to an // IndexedDB table so we don't expect flushing to be that expensive, but // we can batch the writes a little. -const MAX_FLUSH_INTERVAL = 2 * 1000; +const MAX_FLUSH_INTERVAL_MS = 2 * 1000; enum ConsoleLoggerEvent { Log = "log", @@ -225,7 +225,7 @@ export class IndexedDBLogStore { () => { this.flush(); }, - MAX_FLUSH_INTERVAL, + MAX_FLUSH_INTERVAL_MS, { leading: false, trailing: true,