From a98a0eadd886b10a1a8f03a5ba5a3b9841e474c4 Mon Sep 17 00:00:00 2001 From: Zamitto Date: Fri, 3 May 2024 09:07:05 -0300 Subject: [PATCH] feat: lower process-watcher sleep time to 500ms --- src/main/services/process-watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/process-watcher.ts b/src/main/services/process-watcher.ts index 74811735..ffed95e9 100644 --- a/src/main/services/process-watcher.ts +++ b/src/main/services/process-watcher.ts @@ -8,7 +8,7 @@ import { WindowManager } from "./window-manager"; const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); export const startProcessWatcher = async () => { - const sleepTime = 5000; + const sleepTime = 500; const gamesPlaytime = new Map(); // eslint-disable-next-line no-constant-condition