resource-consumer windows image use lead-and-touch for memory allocations

This commit is contained in:
Mark Rossetti 2022-10-12 10:38:13 -07:00
parent b601769721
commit 170555b9f5
No known key found for this signature in database
GPG Key ID: 3188D8FC849D8762
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1.12 1.13

View File

@ -37,7 +37,7 @@ func ConsumeMem(megabytes int, durationSec int) {
megabytesString := strconv.Itoa(megabytes) megabytesString := strconv.Itoa(megabytes)
durationSecString := strconv.Itoa(durationSec) durationSecString := strconv.Itoa(durationSec)
// creating new consume memory process // creating new consume memory process
consumeMem := exec.Command(consumeMemBinary, "-accepteula", "-r", megabytesString, "-e", "0", durationSecString, "-c", "1") consumeMem := exec.Command(consumeMemBinary, "-accepteula", "-d", megabytesString, "-e", "0", durationSecString, "-c", "1")
err := consumeMem.Start() err := consumeMem.Start()
if err != nil { if err != nil {
log.Printf("Error while consuming memory: %v", err) log.Printf("Error while consuming memory: %v", err)