mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
parent
e9cc7bf1cf
commit
94181538a9
@ -39,7 +39,7 @@ type ContainerInfo struct {
|
|||||||
|
|
||||||
type ResourceLimit struct {
|
type ResourceLimit struct {
|
||||||
CPU int `json:"cpu"`
|
CPU int `json:"cpu"`
|
||||||
Memory int `json:"memory"`
|
Memory uint64 `json:"memory"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ContainerOperate struct {
|
type ContainerOperate struct {
|
||||||
|
@ -337,7 +337,7 @@ func (u *ContainerService) LoadResourceLimit() (*dto.ResourceLimit, error) {
|
|||||||
|
|
||||||
data := dto.ResourceLimit{
|
data := dto.ResourceLimit{
|
||||||
CPU: cpuCounts,
|
CPU: cpuCounts,
|
||||||
Memory: int(memoryInfo.Total),
|
Memory: memoryInfo.Total,
|
||||||
}
|
}
|
||||||
return &data, nil
|
return &data, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user