fix: ensure proper parsing of CPU value for progress component in monitoring dashboard

This commit is contained in:
Mauricio Siu
2025-12-02 20:22:27 -06:00
parent e627c9af99
commit c34fdf7a46

View File

@@ -221,7 +221,10 @@ export const ContainerFreeMonitoring = ({
Used: {currentData.cpu.value}
</span>
<Progress
value={parseInt(currentData.cpu.value.replace("%", ""), 10)}
value={Number.parseInt(
currentData.cpu.value.replace("%", ""),
10,
)}
className="w-[100%]"
/>
<DockerCpuChart acummulativeData={acummulativeData.cpu} />