diff --git a/src/routes/console/project-[project]/functions/function-[function]/usage/[[period]]/+page.svelte b/src/routes/console/project-[project]/functions/function-[function]/usage/[[period]]/+page.svelte index c486d2ba5..78901bef9 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/usage/[[period]]/+page.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/usage/[[period]]/+page.svelte @@ -9,6 +9,8 @@ export let data: PageData; $: total = data.executionsTotal; $: count = data.executions; + $: gbHoursTotal = data.executionsMbSecondsTotal / 1000 / 3600; + $: mbSecondsCount = data.executionsMbSeconds; @@ -46,4 +48,24 @@ ]} /> {/if} + +
+ GB Hours +
+ {#if count} + + {formatNumberWithCommas(gbHoursTotal)} +

GB Hours

+
+ [e.date, + Math.ceil((e.value / 1000 / 3600) * 1000) / 1000 + ])] + } + ]} /> + + {/if}