mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
[REV] Update disk use MB
This commit is contained in:
parent
e90e03f1d7
commit
3b55295100
@ -172,7 +172,7 @@ func (t *TenantServicesDaoImpl) GetCPUAndMEM(tenantName []string) ([]map[string]
|
||||
res["cpu"] = cpu
|
||||
res["memory"] = mem
|
||||
res["tenant_id"] = id
|
||||
res["tenant_name"] = tenantName
|
||||
res["tenant_name"] = tenant
|
||||
dirPath := fmt.Sprintf("/grdata/tenant/%s", id)
|
||||
cmd := []string{"-sh", "-m", dirPath}
|
||||
f, err := exec.Command("du", cmd...).Output()
|
||||
|
Loading…
Reference in New Issue
Block a user