diff options
-rw-r--r-- | src/popup.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popup.ts b/src/popup.ts index 84607e15..14d22dd8 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -739,7 +739,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { */ function getFormattedHours(minutes) { minutes = Math.round(minutes * 10) / 10; - const days = Math.floor(minutes / 3600); + const days = Math.floor(minutes / 1440); const hours = Math.floor(minutes / 60) % 24; return (days > 0 ? days + chrome.i18n.getMessage("dayAbbreviation") + " " : "") + (hours > 0 ? hours + chrome.i18n.getMessage("hourAbbreviation") + " " : "") + (minutes % 60).toFixed(1); } |