Fix units
This commit is contained in:
parent
2fdd8df9f9
commit
8caed1e797
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user