Shorten default boot_key_interval to 5ms from 100ms

This commit is contained in:
Calle Pettersson 2019-09-09 22:33:48 +02:00
parent dad3ae1535
commit b467bb22a3
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
c.RawBootKeyInterval = os.Getenv(common.PackerKeyEnv)
}
if c.RawBootKeyInterval == "" {
c.BootKeyInterval = common.PackerKeyDefault
c.BootKeyInterval = 5 * time.Millisecond
} else {
if interval, err := time.ParseDuration(c.RawBootKeyInterval); err == nil {
c.BootKeyInterval = interval