From 1bf76f1b5734df22df419e44d007d43bf5f3a749 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Sat, 21 Dec 2024 11:25:29 -0500 Subject: [PATCH] format --- .../src/components/resources/server/stats.tsx | 143 ++++++++++-------- 1 file changed, 79 insertions(+), 64 deletions(-) diff --git a/frontend/src/components/resources/server/stats.tsx b/frontend/src/components/resources/server/stats.tsx index 6b1ffc0fd..76e296135 100644 --- a/frontend/src/components/resources/server/stats.tsx +++ b/frontend/src/components/resources/server/stats.tsx @@ -105,67 +105,71 @@ export const ServerStats = ({ title="Historical" actions={
- {/* Granularity Dropdown */} + {/* Granularity Dropdown */}
-
Interval:
- +
Interval:
+ +
+ + {/* Network Interface Dropdown */} +
+
Interface:
+ +
- - {/* Network Interface Dropdown */} -
-
Interface:
- -
- - } >
@@ -176,8 +180,16 @@ export const ServerStats = ({ type="disk" className="w-full h-[250px]" /> - - + +
@@ -415,18 +427,21 @@ const NETWORK = ({ stats }: { stats: Types.SystemStats | undefined }) => {

Ingress

- {formattedIngress.value.toFixed(2)} {formattedIngress.unit} + + {formattedIngress.value.toFixed(2)} {formattedIngress.unit} +

Egress

- {formattedEgress.value.toFixed(2)} {formattedEgress.unit} + + {formattedEgress.value.toFixed(2)} {formattedEgress.unit} +
); }; - const DISK = ({ stats }: { stats: Types.SystemStats | undefined }) => { const used = stats?.disks.reduce((acc, curr) => (acc += curr.used_gb), 0); const total = stats?.disks.reduce((acc, curr) => (acc += curr.total_gb), 0);