Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Add LANG=C envar to prevent issues with decimal representation in dif…
Browse files Browse the repository at this point in the history
…ferent system languages
  • Loading branch information
chadsr committed Dec 2, 2019
1 parent 7a8f3b4 commit b68c654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nordnm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def make_executable(file_path):
def get_rtt_loss(host, ping_attempts):
try:
output = subprocess.run([
'ping', '-c',
str(ping_attempts), '-n', '-i', '0.2', '-W', '1', host
'(', 'export LANG=C;', 'ping', '-c',
str(ping_attempts), '-n', '-i', '0.2', '-W', '1', host, ')'
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
Expand Down

0 comments on commit b68c654

Please sign in to comment.