From 8e0622199641fd041763c34df6c1417e7cf91b2a Mon Sep 17 00:00:00 2001 From: NlightN22 Date: Wed, 27 Nov 2024 16:42:04 +0700 Subject: [PATCH] fix check --- src/pages/HostSystemPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/HostSystemPage.tsx b/src/pages/HostSystemPage.tsx index 3a5c7ae..1849738 100644 --- a/src/pages/HostSystemPage.tsx +++ b/src/pages/HostSystemPage.tsx @@ -120,12 +120,12 @@ const HostSystemPage = () => { /> )) - }; + } const detectorsStats = () => { if (!data?.detectors) return null - Object.entries(data.detectors).map(([name, stats]) => { + return Object.entries(data.detectors).map(([name, stats]) => { const pid = stats.pid const cpu = data.cpu_usages ? data.cpu_usages[pid]?.cpu : '0' const mem = data.cpu_usages ? data.cpu_usages[pid]?.mem : '0'