From 405ea0a824d374bd8d49f5be299e1a11839f88ea Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:10:44 -0300 Subject: [PATCH] fix: playtime count --- 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 64b14f4d..2a194bf2 100644 --- a/src/main/services/process-watcher.ts +++ b/src/main/services/process-watcher.ts @@ -119,7 +119,7 @@ const onCloseGame = (game: Game) => { if (game.remoteId) { updateGamePlaytime( game, - performance.now() - gamePlaytime.firstTick, + performance.now() - gamePlaytime.lastSyncTick, game.lastTimePlayed! ).catch(() => {}); } else {