Skip to content

Commit

Permalink
Merge pull request #1777 from benphelps/fix/issue-1774
Browse files Browse the repository at this point in the history
Fix glances metrics widget memory units
  • Loading branch information
shamoon authored Aug 4, 2023
2 parents 552f2c4 + 952c72a commit 63a5622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/glances/metrics/memory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function Component({ service }) {
formatter={(value) => t("common.bytes", {
value,
maximumFractionDigits: 0,
binary: true,
})}
/>

Expand All @@ -60,6 +61,7 @@ export default function Component({ service }) {
{t("common.bytes", {
value: data.free,
maximumFractionDigits: 0,
binary: true,
})} {t("resources.free")}
</div>
)}
Expand All @@ -69,6 +71,7 @@ export default function Component({ service }) {
{t("common.bytes", {
value: data.total,
maximumFractionDigits: 0,
binary: true,
})} {t("resources.total")}
</div>
)}
Expand All @@ -80,6 +83,7 @@ export default function Component({ service }) {
{t("common.bytes", {
value: data.used,
maximumFractionDigits: 0,
binary: true,
})} {t("resources.used")}
</div>
</Block>
Expand Down

0 comments on commit 63a5622

Please sign in to comment.