Skip to content

Commit

Permalink
Merge pull request #1287 from itviewer/main
Browse files Browse the repository at this point in the history
fix live update VM's limits.memory configuration when use a percentage value
  • Loading branch information
stgraber authored Oct 4, 2024
2 parents 7bf4499 + 7c429b8 commit f72f1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -6005,7 +6005,7 @@ func (d *qemu) updateMemoryLimit(newLimit string) error {
}

// Check new size string is valid and convert to bytes.
newSizeBytes, err := units.ParseByteSizeString(newLimit)
newSizeBytes, err := ParseMemoryStr(newLimit)
if err != nil {
return fmt.Errorf("Invalid memory size: %w", err)
}
Expand Down

0 comments on commit f72f1df

Please sign in to comment.