diff mbox

qmp: fix integer usage in examples

Message ID 1377891353-10682-1-git-send-email-eblake@redhat.com
State New
Headers show

Commit Message

Eric Blake Aug. 30, 2013, 7:35 p.m. UTC
* qmp-commands.hx (block_set_io_throttle): Use correct type.

Signed-off-by: Eric Blake <eblake@redhat.com>
---

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(-)
diff mbox

Patch

diff --git a/qmp-commands.hx b/qmp-commands.hx
index bb09e72..87cfdce 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -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