Skip to content

Commit

Permalink
Fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Feb 7, 2025
1 parent 310d5e6 commit f5f352b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/widgets/truenas/pool.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f5f352b

Please sign in to comment.