Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

parse the parameter 'disk_num_per_client' more flexibly #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

parse the parameter 'disk_num_per_client' more flexibly #253

wants to merge 1 commit into from

Conversation

liangzhaowang
Copy link

Signed-off-by: Zhaowangx.Liang [email protected]

@@ -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])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking to make this code in config level, to check if on specify one number in disk_num_per_client, and make as client-number list in configuration.
Not hack in codes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let me see ~

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants