mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Fix wrong memory limit, add total memory, add cpu and memory consumed by core itself to node resources
This commit is contained in:
@@ -187,8 +187,11 @@ func (a *api) About(c echo.Context) error {
|
||||
NCPU: resources.CPU.NCPU,
|
||||
CPU: (100 - resources.CPU.Idle) * resources.CPU.NCPU,
|
||||
CPULimit: resources.CPU.Limit * resources.CPU.NCPU,
|
||||
CPUCore: resources.CPU.Core * resources.CPU.NCPU,
|
||||
Mem: resources.Mem.Total - resources.Mem.Available,
|
||||
MemLimit: resources.Mem.Total,
|
||||
MemLimit: resources.Mem.Limit,
|
||||
MemTotal: resources.Mem.Total,
|
||||
MemCore: resources.Mem.Core,
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user