1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-25 08:14:42 +01:00

Reduce wait time for traceroute

This commit is contained in:
Mehdi Abaakouk 2012-01-26 22:57:52 +01:00
parent 4b7831fa7c
commit 3776c8bf34

View file

@ -25,7 +25,7 @@ def traceroute():
query = request.args.get("q","") query = request.args.get("q","")
query = unquote(query) query = unquote(query)
command = [ 'traceroute', o, '-A', '-q1', '-w2', query] command = [ 'traceroute', o, '-A', '-q1', '-w1', query]
result = subprocess.Popen( command , stdout=subprocess.PIPE).communicate()[0].decode('utf-8', 'ignore').replace("\n","<br>") result = subprocess.Popen( command , stdout=subprocess.PIPE).communicate()[0].decode('utf-8', 'ignore').replace("\n","<br>")
return result return result