]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer/Memory.pm
memory hot-plug: fix check for maximal memory value
[qemu-server.git] / PVE / QemuServer / Memory.pm
index f8fc534098d628813a0862f7209ee1d7d1251d66..3eb1c7c90a5bfb05c7d29f9c89b54ab3401da4fc 100644 (file)
@@ -171,7 +171,7 @@ sub qemu_memory_hotplug {
 
     die "memory can't be lower than $static_memory MB" if $value < $static_memory;
     my $MAX_MEM = get_max_mem($conf);
-    die "you cannot add more memory than max mem $MAX_MEM MB!\n" if $memory > $MAX_MEM;
+    die "you cannot add more memory than max mem $MAX_MEM MB!\n" if $value > $MAX_MEM;
 
     if ($value > $memory) {