From 607163e5032f91e436da4e60a97cad587075e951 Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 11 Nov 2025 01:58:56 +0100 Subject: [PATCH] update live statistics playtime transform --- src/app/website/index/LiveStats.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/website/index/LiveStats.svelte b/src/app/website/index/LiveStats.svelte index b537d08..da1da7b 100644 --- a/src/app/website/index/LiveStats.svelte +++ b/src/app/website/index/LiveStats.svelte @@ -3,9 +3,9 @@ import { statistics } from '@app/website/index/liveStats.ts'; function transformPlaytimeMinutes(playtimeMinutes: number) { - return playtimeMinutes < 60 * 24 - ? `${Math.floor(playtimeMinutes / 60)} Stunden` - : `${Math.floor(playtimeMinutes / 60 / 24)} Tage`; + if (playtimeMinutes < 60 * 24) return `${Math.floor(playtimeMinutes / 60)} Stunden`; + else if (playtimeMinutes < 60 * 24 * 2) return `1 Tag`; + return `${Math.floor(playtimeMinutes / 60 / 24)} Tage`; } function transformMobKills(mobKills: number) {