Reduce wait time for traceroute

This commit is contained in:
Mehdi Abaakouk 2012-01-26 22:57:52 +01:00
parent 4b7831fa7c
commit 3776c8bf34
1 changed files with 1 additions and 1 deletions

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