diff --git a/check.py b/check.py index a22e6e7..64cdd26 100644 --- a/check.py +++ b/check.py @@ -449,12 +449,13 @@ def realtime(args): continue data_list.append(dict()) data_list[-1]['server_data'] = server_data - thread = threading.Thread(target=keep_check_one, args=(server_data, data_list, idx, args.n)) + thread = threading.Thread(target=keep_check_one, args=(server_data, data_list, idx, args.n * 0.95)) idx += 1 thread.daemon = True thread.start() # 绘制 + first_time = True while True: with data_list_lock: if args.table: @@ -478,7 +479,11 @@ def realtime(args): # print(info_list) else: print('出错') - time.sleep(args.n) + if first_time: + first_time = False + time.sleep(1) + else: + time.sleep(args.n) run_realtime = False