fix: 域资源数据使用量

Signed-off-by: devad <cossjie@foxmail.com>
This commit is contained in:
devad 2023-04-24 17:41:54 +08:00
parent c87a9c42d3
commit bcce4c27f0
1 changed files with 4 additions and 4 deletions

View File

@ -37,10 +37,10 @@ func (l *ListDomainResourceLogic) ListDomainResource() (resp *types.DomainResour
rand.Seed(time.Now().UnixNano())
//TODO rand
for i := 0; i < len(resp.DomainResourceList); i++ {
c := rand.Intn(70) + 30
m := rand.Intn(70) + 30
d := rand.Intn(70) + 30
n := rand.Intn(70) + 30
c := rand.Intn(65) + 10
m := rand.Intn(65) + 10
d := rand.Intn(65) + 10
n := rand.Intn(65) + 10
resp.DomainResourceList[i].Cpu = strconv.Itoa(c)
resp.DomainResourceList[i].Memory = strconv.Itoa(m)
resp.DomainResourceList[i].Disk = strconv.Itoa(d)