From eb92c8d65ab6114ae2865c0eb5eaf24381127eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Cvitanovi=C4=87?= <72022639+petar-cvit@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:56:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A6=20round=20node=20metrics=20(#543)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cyclops-ui/src/components/pages/NodeDetails.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cyclops-ui/src/components/pages/NodeDetails.tsx b/cyclops-ui/src/components/pages/NodeDetails.tsx index 6933e5fe..94e68130 100644 --- a/cyclops-ui/src/components/pages/NodeDetails.tsx +++ b/cyclops-ui/src/components/pages/NodeDetails.tsx @@ -429,7 +429,7 @@ const NodeDetails = () => { type="dashboard" strokeWidth={10} status="normal" - percent={resources.cpu * 100} + percent={Math.round(resources.cpu * 10000) / 100} strokeColor={gaugeColors} />

@@ -446,7 +446,7 @@ const NodeDetails = () => { type="dashboard" strokeWidth={10} status="normal" - percent={resources.memory * 100} + percent={Math.round(resources.memory * 10000) / 100} strokeColor={gaugeColors} />

@@ -465,7 +465,7 @@ const NodeDetails = () => { type="dashboard" strokeWidth={10} status="normal" - percent={resources.pod_count * 100} + percent={Math.round(resources.pod_count * 10000) / 100} strokeColor={gaugeColors} />