Skip to content

Commit

Permalink
Merge pull request kubernetes#17031 from xelalexv/issue16425
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Nov 10, 2015
2 parents eee551c + ac9484b commit efa5907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/images/resource-consumer/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ConsumeCPU(millicores int, durationSec int) {
arg1 := fmt.Sprintf("-millicores=%d", millicores)
arg2 := fmt.Sprintf("-duration-sec=%d", durationSec)
consumeCPU := exec.Command(consumeCPUBinary, arg1, arg2)
consumeCPU.Start()
consumeCPU.Run()
}

func ConsumeMem(megabytes int, durationSec int) {
Expand All @@ -43,7 +43,7 @@ func ConsumeMem(megabytes int, durationSec int) {
durationSecString := strconv.Itoa(durationSec)
// creating new consume memory process
consumeMem := exec.Command(consumeMemBinary, "-m", "1", "--vm-bytes", megabytesString, "--vm-hang", "0", "-t", durationSecString)
consumeMem.Start()
consumeMem.Run()
}

func GetCurrentStatus() {
Expand Down

0 comments on commit efa5907

Please sign in to comment.