Fix: add maximumFractionDigits to Glances memory (#2065)
This commit is contained in:
1 parent
6483b10eba
commit
024b912467
1 file changed
+4
-4
@@ -65,7 +65,7 @@ export default function Component({ service }) {
|
|||||||
<div className="text-xs opacity-50">
|
<div className="text-xs opacity-50">
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.free,
|
value: data.free,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 1,
|
||||||
binary: true,
|
binary: true,
|
||||||
})} {t("resources.free")}
|
})} {t("resources.free")}
|
||||||
</div>
|
</div>
|
||||||
@@ -75,7 +75,7 @@ export default function Component({ service }) {
|
|||||||
<div className="text-xs opacity-50">
|
<div className="text-xs opacity-50">
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.total,
|
value: data.total,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 1,
|
||||||
binary: true,
|
binary: true,
|
||||||
})} {t("resources.total")}
|
})} {t("resources.total")}
|
||||||
</div>
|
</div>
|
||||||
@@ -89,7 +89,7 @@ export default function Component({ service }) {
|
|||||||
<div className="text-xs opacity-50">
|
<div className="text-xs opacity-50">
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.free,
|
value: data.free,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 1,
|
||||||
binary: true,
|
binary: true,
|
||||||
})} {t("resources.free")}
|
})} {t("resources.free")}
|
||||||
</div>
|
</div>
|
||||||
@@ -101,7 +101,7 @@ export default function Component({ service }) {
|
|||||||
<div className="text-xs font-bold opacity-75">
|
<div className="text-xs font-bold opacity-75">
|
||||||
{t("common.bytes", {
|
{t("common.bytes", {
|
||||||
value: data.used,
|
value: data.used,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 1,
|
||||||
binary: true,
|
binary: true,
|
||||||
})} {t("resources.used")}
|
})} {t("resources.used")}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user