[skip ci] Add comment of timestr_to_int func on benchmark (#8709)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/8673/head
wt 2021-09-27 19:18:02 +08:00 committed by GitHub
parent f966f3b0ae
commit 99b08a53df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ logger = logging.getLogger("milvus_benchmark.utils")
def timestr_to_int(time_str):
""" Parse the test time set in the yaml configuration file and convert it to int type """
time_int = 0
if isinstance(time_str, int) or time_str.isdigit():
time_int = int(time_str)