mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
[REV] tenant disk resource use MB as unit
This commit is contained in:
parent
3b55295100
commit
517e69133e
@ -181,7 +181,11 @@ func (t *TenantServicesDaoImpl) GetCPUAndMEM(tenantName []string) ([]map[string]
|
||||
}
|
||||
st := strings.Split(string(f), "\t")[0]
|
||||
//TODO: disk默认单位为MB
|
||||
res["disk"] = st
|
||||
intSt, err := strconv.Atoi(st)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res["disk"] = intSt
|
||||
rc = append(rc, res)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user