Commit a06d378d authored by 段英荣's avatar 段英荣

modify

parent 81b7ea4c
......@@ -221,7 +221,7 @@ class ESPerform(object):
es_nodes_info_list = es_nodes_ori_info.split("\n")
for item in es_nodes_info_list:
cpu_load_1m = item.split(" ")[4]
if int(cpu_load_1m) > 50:
if float(cpu_load_1m) > 50:
high_num += 1
es_nodes_list.append(int(cpu_load_1m))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment