mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
debug
This commit is contained in:
@@ -751,6 +751,7 @@ def ping_avg_time(nameserver):
|
|||||||
:param nameserver:
|
:param nameserver:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
check_dir(settings.temp_save_dir)
|
||||||
temp_path = settings.temp_save_dir.joinpath('ping')
|
temp_path = settings.temp_save_dir.joinpath('ping')
|
||||||
ping(nameserver, path=temp_path)
|
ping(nameserver, path=temp_path)
|
||||||
with open(temp_path, 'r')as f:
|
with open(temp_path, 'r')as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user