diff --git a/src/components/widgets/resources/cpu.jsx b/src/components/widgets/resources/cpu.jsx index 0382270cffd001138af1e410dbbb0741395c4cf1..7069e3c4a657abc17296de98fa4abc53a0a46e50 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 bed7caef906c01cdd3545512da921343533bcfb2..fb770dbb1a2410bc15bdc8825e2073909c39dc54 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 068177df0f8e163d237a48a33226e00d16d3a31b..27351998ebb05fb1e7b2c0d9f4012e4cd49bc539 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,