mirror of https://github.com/milvus-io/milvus.git
[skip ci] remove unused code of timestr_to_int on benchmark (#10103)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/10110/head
parent
b4b30cc8f8
commit
eaf354144b
|
@ -15,7 +15,7 @@ logger = logging.getLogger("milvus_benchmark.utils")
|
||||||
|
|
||||||
def timestr_to_int(time_str):
|
def timestr_to_int(time_str):
|
||||||
""" Parse the test time set in the yaml configuration file and convert it to int type """
|
""" Parse the test time set in the yaml configuration file and convert it to int type """
|
||||||
time_int = 0
|
# time_int = 0
|
||||||
if isinstance(time_str, int) or time_str.isdigit():
|
if isinstance(time_str, int) or time_str.isdigit():
|
||||||
time_int = int(time_str)
|
time_int = int(time_str)
|
||||||
elif time_str.endswith("s"):
|
elif time_str.endswith("s"):
|
||||||
|
|
Loading…
Reference in New Issue