Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for memory in decimal GiB #1205

Closed
wants to merge 2 commits into from
Closed

Conversation

qiao-summer
Copy link
Contributor

colima start --cpu 1 --memory 0.8 --disk 10

@@ -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("%dGiB", conf.Memory)
l.Memory = fmt.Sprintf("%dMiB", uint32(conf.Memory*1024)) //memorySize is a multiple of 1 megabyte
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is not needed.

Suggested change
l.Memory = fmt.Sprintf("%dMiB", uint32(conf.Memory*1024)) //memorySize is a multiple of 1 megabyte
l.Memory = fmt.Sprintf("%dMiB", uint32(conf.Memory*1024))

@qiao-summer qiao-summer closed this Dec 4, 2024
@abiosoft
Copy link
Owner

abiosoft commented Dec 4, 2024

@qiao-summer any reason why you closed the pull request?

@qiao-summer
Copy link
Contributor Author

@abiosoft I resubmitted with another pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants