fix: 解决单位转换导致的内存限制问题 (#4055)

Refs #4040
pull/4060/head
ssongliu 9 months ago committed by GitHub
parent e9cc7bf1cf
commit 94181538a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -39,7 +39,7 @@ type ContainerInfo struct {
type ResourceLimit struct {
CPU int `json:"cpu"`
Memory int `json:"memory"`
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…
Cancel
Save