Second version of the patch, following all suggestions by Stefan. v2: - The code that parses the intervals has been moved to a separate function - Due to the previous change, the loop has been modified a bit and the original 'length' variable no longer exists. - interval_dict and interval_list are now initialized to NULL
v1: https://lists.gnu.org/archive/html/qemu-block/2015-11/msg00432.html Regards, Berto Alberto Garcia (1): block: make 'stats-interval' an array of ints instead of a string blockdev.c | 91 +++++++++++++++++++++++++++++++------------------- qapi/block-core.json | 7 ++-- tests/qemu-iotests/136 | 2 +- 3 files changed, 61 insertions(+), 39 deletions(-) -- 2.6.2