Skip to contentSkip to conversation

qmp: fix integer usage in examples

PATCH Superseded Eric Blake 2 participants 2 messages Aug 30, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

PATCH 1/1 qmp: fix integer usage in examples

* qmp-commands.hx (block_set_io_throttle): Use correct type.

---

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
index bb09e72..87cfdce 100644
@@ -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
#1 lore raw
Quoted 38 lines · Eric Blake

* qmp-commands.hx (block_set_io_throttle): Use correct type.

---

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
index bb09e72..87cfdce 100644
@@ -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

I rebased my series on top of Eric patch.

Best regards

Benoît