mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-03 02:32:21 +00:00
fix: ensure proper parsing of CPU value for progress component in monitoring dashboard
This commit is contained in:
+4
-1
@@ -221,7 +221,10 @@ export const ContainerFreeMonitoring = ({
|
|||||||
Used: {currentData.cpu.value}
|
Used: {currentData.cpu.value}
|
||||||
</span>
|
</span>
|
||||||
<Progress
|
<Progress
|
||||||
value={parseInt(currentData.cpu.value.replace("%", ""), 10)}
|
value={Number.parseInt(
|
||||||
|
currentData.cpu.value.replace("%", ""),
|
||||||
|
10,
|
||||||
|
)}
|
||||||
className="w-[100%]"
|
className="w-[100%]"
|
||||||
/>
|
/>
|
||||||
<DockerCpuChart acummulativeData={acummulativeData.cpu} />
|
<DockerCpuChart acummulativeData={acummulativeData.cpu} />
|
||||||
|
|||||||
Reference in New Issue
Block a user