Fix units

This commit is contained in:
shamoon 2025-01-26 23:37:16 -08:00
parent 2fdd8df9f9
commit 8caed1e797
No known key found for this signature in database

View File

@ -22,17 +22,15 @@ export default function Pool({ name, free, allocated, healthy }) {
</div>
<div className="self-center text-xs flex justify-end mr-1.5 pl-1 z-10 text-ellipsis overflow-hidden whitespace-nowrap">
<span>
{t("common.bytes", {
{`${t("common.bytes", {
value: allocated,
maximumFractionDigits: 1,
binary: true,
})}{" "}
/{" "}
{t("common.bytes", {
})} / ${t("common.bytes", {
value: free + allocated,
maximumFractionDigits: 1,
binary: true,
})}
})}`}
</span>
<span className="pl-2">({usedPercent}%)</span>
</div>