5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-06 13:17:56 +03:00

fix disk throttling syntax

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>
This commit is contained in:
Dominik Csapak 2017-07-14 14:36:16 +02:00 committed by Wolfgang Bumiller
parent 0a736d5c85
commit 8aca16542e

View 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";
}
}