Skip to content

Commit 1a79fd5

Browse files
committed
Change to MiB
1 parent 0073780 commit 1a79fd5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

components/modules/rollup/RollupOverview.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ const handleCSVDownload = async (value) => {
473473
</Text>
474474
475475
<template #content>
476-
{{ DateTime.fromISO(rollup.first_message_time).setLocale("en").toFormat("LLL d, t") }}
476+
{{ DateTime.fromISO(rollup.first_message_time).setLocale("en").toFormat("LLL d y, t") }}
477477
</template>
478478
</Tooltip>
479479
</Flex>
@@ -486,7 +486,7 @@ const handleCSVDownload = async (value) => {
486486
</Text>
487487
488488
<template #content>
489-
{{ DateTime.fromISO(rollup.last_message_time).setLocale("en").toFormat("LLL d, t") }}
489+
{{ DateTime.fromISO(rollup.last_message_time).setLocale("en").toFormat("LLL d y, t") }}
490490
</template>
491491
</Tooltip>
492492
</Flex>

services/utils/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const formatBytes = (bytes, decimals = 2) => {
44
if (!+bytes) return "0 Byte"
55

66
const dm = decimals < 0 ? 0 : decimals
7-
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB"]
7+
const sizes = ["Bytes", "KB", "MiB", "GB", "TB", "PB"]
88

99
const i = Math.floor(Math.log(bytes) / Math.log(1024))
1010

0 commit comments

Comments
 (0)