Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
misc
Commits
775d0337
Unverified
Commit
775d0337
authored
Oct 20, 2017
by
Michal Hrusecky
🐭
Browse files
netmetr: Hostname to ping has to be after options
Otherwise it doesn't work on OpenWRT.
parent
4ff8e780
Changes
1
Hide whitespace changes
Inline
Side-by-side
netmetr/netmetr
View file @
775d0337
...
...
@@ -147,8 +147,8 @@ def measure_pings(sets):
print
(
'
\033
[93m'
+
"Starting ping test..."
+
'
\033
[0m'
)
ping_result_lines
=
subprocess
.
check_output
([
"ping"
,
sets
.
test_
server_addres
s
,
"-c"
,
sets
.
test_
numping
s
"ping"
,
"-c"
,
sets
.
test_
numping
s
,
sets
.
test_
server_addres
s
]).
split
(
'
\n
'
)
ping_values
=
list
()
for
i
in
range
(
1
,
int
(
sets
.
test_numpings
)
+
1
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment