]> git.proxmox.com Git - qemu-server.git/commitdiff
fix disk throttling syntax
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 14 Jul 2017 12:36:16 +0000 (14:36 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 14 Jul 2017 13:15:11 +0000 (15:15 +0200)
the syntax was wrong, it was (e.g. for iops-write):

throttling.iops-write=-max100
instead of
throttling.iops-write-max=100

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm

index 79a65eeead5633046be34fdc3ce2f47c71e7e94a..98cd76239ef4aced3cc5dfef9386062ec56a408e 100644 (file)
@@ -1613,10 +1613,10 @@ sub print_drive_full {
            $opts .= ",throttling.iops$qmpname=$v";
        }
        if (my $v = $drive->{"iops${dir}_max"}) {
-           $opts .= ",throttling.iops$qmpname=-max$v";
+           $opts .= ",throttling.iops$qmpname-max=$v";
        }
        if (my $v = $drive->{"iops${dir}_max_length"}) {
-           $opts .= ",throttling.iops$qmpname=-max-length$v";
+           $opts .= ",throttling.iops$qmpname-max-length=$v";
        }
     }