mirror of https://github.com/xqemu/xqemu.git
qmp: fix integer usage in examples
Per the qapi schema, block_set_io_throttle takes most arguments as ints, not strings. * qmp-commands.hx (block_set_io_throttle): Use correct type. Fix whitespace and a copy-paste bug in the process. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
a32b12741b
commit
586b546657
|
@ -1404,7 +1404,7 @@ Arguments:
|
||||||
- "device": device name (json-string)
|
- "device": device name (json-string)
|
||||||
- "bps": total throughput limit in bytes per second (json-int)
|
- "bps": total throughput limit in bytes per second (json-int)
|
||||||
- "bps_rd": read throughput limit in bytes per second (json-int)
|
- "bps_rd": read throughput limit in bytes per second (json-int)
|
||||||
- "bps_wr": read throughput limit in bytes per second(json-int)
|
- "bps_wr": write throughput limit in bytes per second (json-int)
|
||||||
- "iops": total I/O operations per second (json-int)
|
- "iops": total I/O operations per second (json-int)
|
||||||
- "iops_rd": read I/O operations per second (json-int)
|
- "iops_rd": read I/O operations per second (json-int)
|
||||||
- "iops_wr": write I/O operations per second (json-int)
|
- "iops_wr": write I/O operations per second (json-int)
|
||||||
|
@ -1412,12 +1412,12 @@ Arguments:
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
-> { "execute": "block_set_io_throttle", "arguments": { "device": "virtio0",
|
-> { "execute": "block_set_io_throttle", "arguments": { "device": "virtio0",
|
||||||
"bps": "1000000",
|
"bps": 1000000,
|
||||||
"bps_rd": "0",
|
"bps_rd": 0,
|
||||||
"bps_wr": "0",
|
"bps_wr": 0,
|
||||||
"iops": "0",
|
"iops": 0,
|
||||||
"iops_rd": "0",
|
"iops_rd": 0,
|
||||||
"iops_wr": "0" } }
|
"iops_wr": 0 } }
|
||||||
<- { "return": {} }
|
<- { "return": {} }
|
||||||
|
|
||||||
EQMP
|
EQMP
|
||||||
|
|
Loading…
Reference in New Issue