qmp: fix integer usage in examples
PATCH 1/1 qmp: fix integer usage in examples
* qmp-commands.hx (block_set_io_throttle): Use correct type.
Signed-off-by Eric Blake <[email protected]>
---
Noticed while reviewing Benoît's series of "Continuous Leaky Bucket Throttling" - depending on whose patch goes in first, the other will have to rebase...
qmp-commands.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
qmp-commands.hx +6 -6
@@ -1412,12 +1412,12 @@ Arguments: Example: -> { "execute": "block_set_io_throttle", "arguments": { "device": "virtio0", - "bps": "1000000", - "bps_rd": "0", - "bps_wr": "0", - "iops": "0", - "iops_rd": "0", - "iops_wr": "0" } } + "bps": 1000000, + "bps_rd": 0, + "bps_wr": 0, + "iops": 0, + "iops_rd": 0, + "iops_wr": 0 } } <- { "return": {} } EQMP
Signature · 1 line
1.8.3.1
Quoted 38 lines · Eric Blake
* qmp-commands.hx (
block_set_io_throttle): Use correct type.Signed-off-by Eric Blake <[email protected]>---
Noticed while reviewing Benoît's series of "Continuous Leaky Bucket Throttling" - depending on whose patch goes in first, the other will have to rebase...
qmp-commands.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)qmp-commands.hx +6
-6@@ -1412,12 +1412,12 @@ Arguments: Example: -> { "execute": "block_set_io_throttle", "arguments": { "device": "virtio0", - "bps": "1000000", - "bps_rd": "0", - "bps_wr": "0", - "iops": "0", - "iops_rd": "0", - "iops_wr": "0" } } + "bps": 1000000, + "bps_rd": 0, + "bps_wr": 0, + "iops": 0, + "iops_rd": 0, + "iops_wr": 0 } } <- { "return": {} } EQMPSignature · 1 line
1.8.3.1
I rebased my series on top of Eric patch.
Best regards
Benoît