diff options
| author | 韩丁康 <[email protected]> | 2023-11-15 16:21:54 +0800 |
|---|---|---|
| committer | 韩丁康 <[email protected]> | 2023-11-15 16:21:54 +0800 |
| commit | 95fd50eca7b55d69e0c8f0e11dfabe464d11d02b (patch) | |
| tree | b2c9b840cc595ddec8ef093069b49690adcf0adc | |
| parent | bed26270b10580419dad098d154c8ff220adf27d (diff) | |
时延过长原因探究
| -rw-r--r-- | apps/delay.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/delay.py b/apps/delay.py index 9e0c0e7..61be9dc 100644 --- a/apps/delay.py +++ b/apps/delay.py @@ -116,7 +116,7 @@ def task(ans,addr,row,type): def icmp_delay_query(target,addr): try: res=requests.get(url="http://"+addr+":2525/script/icmpdelay",params={'ip':target},timeout=5) - print("icmp ok:" + addr + "-------" + res.text) + print("icmp ok:" + addr + "-------" + res.text+"-------"+str(res.elapsed.total_seconds())) icmp_delaytable[str(addr)+str(target)]=res.text return res.text except Timeout: |
