From 984daac04024ea35890b5e4a9141f880868320e7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 13 Oct 2021 20:43:00 +0200 Subject: [PATCH] Floor numbers instead of round to upper --- app/Utils/StatsUtils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Utils/StatsUtils.ts b/app/Utils/StatsUtils.ts index a725e26..c373a19 100644 --- a/app/Utils/StatsUtils.ts +++ b/app/Utils/StatsUtils.ts @@ -44,9 +44,9 @@ export async function getDevelopmentHours(start: string, end: string): Promise total += item.seconds) return { - total_hours: Math.round(total / 3600), - total_minutes: Math.round(total / 60), - total_seconds: Math.round(total) + total_hours: Math.floor(total / 3600), + total_minutes: Math.floor(total / 60), + total_seconds: Math.floor(total) } }