Skip to content

Commit

Permalink
Merge pull request #49 from AntonioMeireles/cpuUsage
Browse files Browse the repository at this point in the history
be nicer to the environment...
  • Loading branch information
AntonioMeireles committed Jan 7, 2016
2 parents f8d3629 + 330736c commit 800a09a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ func (running *sessionContext) boot(slt int, rawArgs *viper.Viper) (err error) {
"PID %v\n", vm.Name, vm.PublicIP, c.Process.Pid)
}
return
default:
time.Sleep(100 * time.Millisecond)
}
}
}()
Expand Down Expand Up @@ -299,6 +301,8 @@ func (running *sessionContext) boot(slt int, rawArgs *viper.Viper) (err error) {
if exit != nil || (vm.PublicIP != "" && vm.Pid != -1) {
return vm.exitStatus
}
default:
time.Sleep(1 * time.Second)
}
}
}
Expand Down

0 comments on commit 800a09a

Please sign in to comment.