Skip to content

Commit

Permalink
[fix] Fixed ping command "-i" > "-p" #527
Browse files Browse the repository at this point in the history
Fixes #527
  • Loading branch information
pandafy committed Aug 24, 2023
1 parent d57b98f commit 0eb22a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openwisp_monitoring/check/classes/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def check(self, store=True):
'fping',
'-e', # show elapsed (round-trip) time of packets
'-c %s' % count, # count of pings to send to each target,
'-i %s' % interval, # interval between sending pings(in ms)
'-p %s' % interval, # interval between sending pings(in ms)
'-b %s' % bytes_, # amount of ping data to send
'-t %s' % timeout, # individual target initial timeout (in ms)
'-q',
Expand Down
2 changes: 1 addition & 1 deletion openwisp_monitoring/check/tests/test_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_ping_check_config(self, *args):
'fping',
'-e',
'-c 22',
'-i 25',
'-p 25',
'-b 1024',
'-t 10000',
'-q',
Expand Down

0 comments on commit 0eb22a7

Please sign in to comment.