mirror of
https://github.com/containers/podman.git
synced 2025-10-30 01:17:00 +08:00
podman machine allows podman to create, manage, and interact with a vm running some form of linux (default is fcos). podman is then configured to be able to interact with the vm automatically. while this is usable on linux, the real push is to get this working on both current apple architectures in macos. Ashley Cui contributed to this PR and was a great help. [NO TESTS NEEDED] Signed-off-by: baude <bbaude@redhat.com>
11 lines
251 B
Go
11 lines
251 B
Go
package internal
|
|
|
|
// CheckRequestedWidth checks that requested width doesn't overflow
|
|
// available width
|
|
func CheckRequestedWidth(requested, available int) int {
|
|
if requested <= 0 || requested >= available {
|
|
return available
|
|
}
|
|
return requested
|
|
}
|