Skip to content

Commit

Permalink
🚦 round node metrics (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit authored Aug 29, 2024
1 parent 7943c74 commit eb92c8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cyclops-ui/src/components/pages/NodeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
<h1 style={{ marginBottom: "6px" }}>
Expand All @@ -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}
/>
<h1 style={{ marginBottom: "6px" }}>
Expand All @@ -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}
/>
<h1 style={{ marginBottom: "6px" }}>
Expand Down

0 comments on commit eb92c8d

Please sign in to comment.