1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-12-22 20:44:43 +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 = 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>")
return result