mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-24 20:58:46 +00:00
fix: parse CPU value for progress component in monitoring dashboard
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ export const ContainerFreeMonitoring = ({
|
|||||||
<span className="text-sm text-muted-foreground">
|
<span className="text-sm text-muted-foreground">
|
||||||
Used: {currentData.cpu.value}
|
Used: {currentData.cpu.value}
|
||||||
</span>
|
</span>
|
||||||
<Progress value={currentData.cpu.value} className="w-[100%]" />
|
<Progress value={parseInt(currentData.cpu.value.replace('%', ''), 10)} className="w-[100%]" />
|
||||||
<DockerCpuChart acummulativeData={acummulativeData.cpu} />
|
<DockerCpuChart acummulativeData={acummulativeData.cpu} />
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user