[REV] tenant disk resource use MB as unit

This commit is contained in:
pujielan 2018-01-15 14:36:49 +08:00
parent 3b55295100
commit 517e69133e

View File

@ -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)
}
}