This commit is contained in:
JrD
2020-09-17 18:24:54 +08:00
parent 7d99424e50
commit 53ce7591f3
+1
View File
@@ -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: