parent
c87a9c42d3
commit
bcce4c27f0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue