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>
<div className="self-center text-xs flex justify-end mr-1.5 pl-1 z-10 text-ellipsis overflow-hidden whitespace-nowrap"> <div className="self-center text-xs flex justify-end mr-1.5 pl-1 z-10 text-ellipsis overflow-hidden whitespace-nowrap">
<span> <span>
{t("common.bytes", { {`${t("common.bytes", {
value: allocated, value: allocated,
maximumFractionDigits: 1, maximumFractionDigits: 1,
binary: true, binary: true,
})}{" "} })} / ${t("common.bytes", {
/{" "}
{t("common.bytes", {
value: free + allocated, value: free + allocated,
maximumFractionDigits: 1, maximumFractionDigits: 1,
binary: true, binary: true,
})} })}`}
</span> </span>
<span className="pl-2">({usedPercent}%)</span> <span className="pl-2">({usedPercent}%)</span>
</div> </div>