From 2829f0b64943256157441b257d80906098371791 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 3 Apr 2023 23:22:28 -0700 Subject: [PATCH] Update memory.jsx --- 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 2ee0a15e6..30b7c8eb8 100644 --- a/src/components/widgets/resources/memory.jsx +++ b/src/components/widgets/resources/memory.jsx @@ -44,7 +44,7 @@ export default function Memory({ expanded }) { ); } - const percent = Math.round((data.memory.used / data.memory.total) * 100); + const percent = Math.round((data.memory.active / data.memory.total) * 100); return (
@@ -52,7 +52,7 @@ export default function Memory({ expanded }) {
- {t("common.bytes", { value: data.memory.free, maximumFractionDigits: 1, binary: true })} + {t("common.bytes", { value: data.memory.available, maximumFractionDigits: 1, binary: true })}
{t("resources.free")}