From 4c70bff95247ee64a9c11d95704e3509e2731628 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 28 Nov 2022 17:35:04 -0800 Subject: [PATCH] Show memory up to 1 decimal place --- src/components/widgets/resources/memory.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/resources/memory.jsx b/src/components/widgets/resources/memory.jsx index 452634565..2888f9070 100644 --- a/src/components/widgets/resources/memory.jsx +++ b/src/components/widgets/resources/memory.jsx @@ -52,7 +52,7 @@ export default function Memory({ expanded }) {
- {t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024, maximumFractionDigits: 0, binary: true })} + {t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024, maximumFractionDigits: 1, binary: true })}
{t("resources.free")}
@@ -61,7 +61,7 @@ export default function Memory({ expanded }) {
{t("common.bytes", { value: data.memory.totalMemMb * 1024 * 1024, - maximumFractionDigits: 0, + maximumFractionDigits: 1, binary: true, })}