Skip to content

Commit

Permalink
fix(memory): memorySize is a multiple of 1 megabyte
Browse files Browse the repository at this point in the history
  • Loading branch information
summer authored and summer committed Dec 4, 2024
1 parent 04955bf commit e9c7e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion environment/vm/lima/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newConf(ctx context.Context, conf config.Config) (l limaconfig.Config, err
l.CPUs = &conf.CPU
}
if conf.Memory > 0 {
l.Memory = fmt.Sprintf("%fGiB", conf.Memory)
l.Memory = fmt.Sprintf("%dMiB", uint32(conf.Memory*1024)) //memorySize is a multiple of 1 megabyte
}
if conf.Disk > 0 {
l.Disk = fmt.Sprintf("%dGiB", conf.Disk)
Expand Down

0 comments on commit e9c7e66

Please sign in to comment.