mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-29 02:06:34 +08:00
parent
e9cc7bf1cf
commit
94181538a9
2 changed files with 3 additions and 3 deletions
|
|
@ -38,8 +38,8 @@ type ContainerInfo struct {
|
|||
}
|
||||
|
||||
type ResourceLimit struct {
|
||||
CPU int `json:"cpu"`
|
||||
Memory int `json:"memory"`
|
||||
CPU int `json:"cpu"`
|
||||
Memory uint64 `json:"memory"`
|
||||
}
|
||||
|
||||
type ContainerOperate struct {
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ func (u *ContainerService) LoadResourceLimit() (*dto.ResourceLimit, error) {
|
|||
|
||||
data := dto.ResourceLimit{
|
||||
CPU: cpuCounts,
|
||||
Memory: int(memoryInfo.Total),
|
||||
Memory: memoryInfo.Total,
|
||||
}
|
||||
return &data, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue