From 563f428f96b32afc69b1e8757e20babecdf5efa7 Mon Sep 17 00:00:00 2001 From: "Zhaowangx.Liang" Date: Fri, 7 Jul 2017 14:24:56 +0800 Subject: [PATCH] parse the parameter 'disk_num_per_client' more flexibly Signed-off-by: Zhaowangx.Liang --- benchmarking/mod/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarking/mod/benchmark.py b/benchmarking/mod/benchmark.py index 7f7ca31..82904f8 100644 --- a/benchmarking/mod/benchmark.py +++ b/benchmarking/mod/benchmark.py @@ -359,7 +359,7 @@ def testjob_distribution(self, disk_num_per_client, instance_list): client_num = 0 self.cluster["testjob_distribution"] = {} for client in self.cluster["client"]: - vclient_total = int(disk_num_per_client[client_num]) + vclient_total = int(disk_num_per_client[client_num]) if client_num < len(disk_num_per_client) else int(disk_num_per_client[-1]) end_vclient_num = start_vclient_num + vclient_total self.cluster["testjob_distribution"][client] = copy.deepcopy(instance_list[start_vclient_num:end_vclient_num]) start_vclient_num = end_vclient_num