diff --git a/src/lib/helpers/sizeConvertion.ts b/src/lib/helpers/sizeConvertion.ts index 07d37022d..00709e4de 100644 --- a/src/lib/helpers/sizeConvertion.ts +++ b/src/lib/helpers/sizeConvertion.ts @@ -24,7 +24,7 @@ export function bytesToSize(value: number, unit: Size, base = 1000) { } export function mbSecondsToGBHours(value: number, base: 1000 | 1024 = 1000) { - return (value / base) / (60 * 60); + return value / base / (60 * 60); } export function humanFileSize( diff --git a/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte b/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte index d6d3f95cf..4484601b2 100644 --- a/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte +++ b/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte @@ -380,7 +380,9 @@
{(Math.ceil(totalGbHours * 100) / 100).toLocaleString('en-US')} + >{(Math.ceil(totalGbHours * 100) / 100).toLocaleString( + 'en-US' + )} {`GB hours`}
+ ]} +
{(Math.ceil(totalGbHours * 100) / 100).toLocaleString('en-US')} - {`GB hours`} -
+ >{(Math.ceil(totalGbHours * 100) / 100).toLocaleString( + 'en-US' + )} + {`GB hours`} + +No data to show
-No data to show
+Metrics are estimates updated every 24 hours and may not accurately reflect your invoice.