mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
16 lines
315 B
Go
16 lines
315 B
Go
//go:build windows
|
|
|
|
package command
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
"github.com/containers/common/pkg/strongunits"
|
|
)
|
|
|
|
// SetMemory adds the specified amount of memory for the machine
|
|
func (q *QemuCmd) SetMemory(m strongunits.MiB) {
|
|
serializedMem := strconv.FormatUint(uint64(m), 10)
|
|
*q = append(*q, "-m", serializedMem)
|
|
}
|