From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyG5v-0007wE-8s for qemu-devel@nongnu.org; Mon, 16 Nov 2015 04:29:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyG5r-0004Iv-98 for qemu-devel@nongnu.org; Mon, 16 Nov 2015 04:29:03 -0500 From: Alberto Garcia Date: Mon, 16 Nov 2015 11:28:37 +0200 Message-Id: Subject: [Qemu-devel] [PATCH for-2.5 v2 0/1] block: make 'stats-interval' an array of ints instead of a string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Alberto Garcia , qemu-block@nongnu.org, Markus Armbruster , Max Reitz , Stefan Hajnoczi 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