mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 12:16:40 +00:00
fix: update prettyBytes utility to include bits
This commit is contained in:
parent
3414aae29b
commit
939c8c137f
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ export function prettySiRealtimeBytesUtil(
|
|||
bytesInput = Number(bytesInput)
|
||||
}
|
||||
|
||||
const res = xbytes.parseBytes(bytesInput, { sticky: true, iec: false })
|
||||
const res = xbytes.parseBytes(bytesInput, { sticky: true, iec: false, bits: true })
|
||||
|
||||
return `${res.size}${withSeconds ? '/s' : ''}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue