diff --git a/src/components/widgets/resources/cpu.jsx b/src/components/widgets/resources/cpu.jsx index 0382270cf..7069e3c4a 100644 --- a/src/components/widgets/resources/cpu.jsx +++ b/src/components/widgets/resources/cpu.jsx @@ -29,12 +29,12 @@ export default function Cpu({ expanded }) {
-
-
+
-
{t("resources.cpu")}
{expanded && (
-
-
+
-
{t("resources.load")}
)} @@ -51,7 +51,7 @@ export default function Cpu({ expanded }) {
-
+
{t("common.number", { value: data.cpu.usage, style: "unit", @@ -63,7 +63,7 @@ export default function Cpu({ expanded }) {
{expanded && (
-
+
{t("common.number", { value: data.cpu.load, maximumFractionDigits: 2, diff --git a/src/components/widgets/resources/disk.jsx b/src/components/widgets/resources/disk.jsx index bed7caef9..fb770dbb1 100644 --- a/src/components/widgets/resources/disk.jsx +++ b/src/components/widgets/resources/disk.jsx @@ -29,12 +29,12 @@ export default function Disk({ options, expanded }) {
-
-
+
-
{t("resources.free")}
{expanded && ( -
-
+
-
{t("resources.total")}
)} @@ -51,12 +51,12 @@ export default function Disk({ options, expanded }) {
-
{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })}
+
{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })}
{t("resources.free")}
{expanded && ( -
{t("common.bytes", { value: data.drive.totalGb * 1024 * 1024 * 1024 })}
+
{t("common.bytes", { value: data.drive.totalGb * 1024 * 1024 * 1024 })}
{t("resources.total")}
)} diff --git a/src/components/widgets/resources/memory.jsx b/src/components/widgets/resources/memory.jsx index 068177df0..27351998e 100644 --- a/src/components/widgets/resources/memory.jsx +++ b/src/components/widgets/resources/memory.jsx @@ -29,12 +29,12 @@ export default function Memory({ expanded }) {
-
-
+
-
{t("resources.free")}
{expanded && ( -
-
+
-
{t("resources.total")}
)} @@ -51,14 +51,14 @@ export default function Memory({ expanded }) {
-
+
{t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024, maximumFractionDigits: 1, binary: true })}
{t("resources.free")}
{expanded && ( -
+
{t("common.bytes", { value: data.memory.totalMemMb * 1024 * 1024, maximumFractionDigits: 1,