File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
apps/dokploy/components/dashboard/monitoring/free/container Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { DockerNetworkChart } from "./docker-network-chart";
1010
1111const defaultData = {
1212 cpu : {
13- value : 0 ,
13+ value : "0%" ,
1414 time : "" ,
1515 } ,
1616 memory : {
@@ -46,7 +46,7 @@ interface Props {
4646}
4747export interface DockerStats {
4848 cpu : {
49- value : number ;
49+ value : string ;
5050 time : string ;
5151 } ;
5252 memory : {
@@ -220,7 +220,13 @@ export const ContainerFreeMonitoring = ({
220220 < span className = "text-sm text-muted-foreground" >
221221 Used: { currentData . cpu . value }
222222 </ span >
223- < Progress value = { currentData . cpu . value } className = "w-[100%]" />
223+ < Progress
224+ value = { Number . parseInt (
225+ currentData . cpu . value . replace ( "%" , "" ) ,
226+ 10 ,
227+ ) }
228+ className = "w-[100%]"
229+ />
224230 < DockerCpuChart acummulativeData = { acummulativeData . cpu } />
225231 </ div >
226232 </ CardContent >
You can’t perform that action at this time.
0 commit comments