mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Merge pull request #1777 from benphelps/fix/issue-1774
Fix glances metrics widget memory units
This commit is contained in:
commit
63a56225bb
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,7 @@ export default function Component({ service }) {
|
||||||
formatter={(value) => t("common.bytes", {
|
formatter={(value) => t("common.bytes", {
|
||||||
value,
|
value,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 0,
|
||||||
|
binary: true,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -60,6 +61,7 @@ export default function Component({ service }) {
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.free,
|
value: data.free,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 0,
|
||||||
|
binary: true,
|
||||||
})} {t("resources.free")}
|
})} {t("resources.free")}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -69,6 +71,7 @@ export default function Component({ service }) {
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.total,
|
value: data.total,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 0,
|
||||||
|
binary: true,
|
||||||
})} {t("resources.total")}
|
})} {t("resources.total")}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -80,6 +83,7 @@ export default function Component({ service }) {
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.used,
|
value: data.used,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 0,
|
||||||
|
binary: true,
|
||||||
})} {t("resources.used")}
|
})} {t("resources.used")}
|
||||||
</div>
|
</div>
|
||||||
</Block>
|
</Block>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue