mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: game session duration calculation
This commit is contained in:
parent
e092d701b4
commit
f019820458
3 changed files with 5 additions and 5 deletions
|
|
@ -96,7 +96,7 @@ export const watchProcesses = async () => {
|
|||
const runningGames = Array.from(gamesPlaytime.entries()).map((entry) => {
|
||||
return {
|
||||
id: entry[0],
|
||||
sessionDurationInMillis: entry[1].firstTick - performance.now(),
|
||||
sessionDurationInMillis: performance.now() - entry[1].firstTick,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue