Try ping plugin with -n and -s options added

This commit is contained in:
Cameron Sparr
2016-02-01 18:32:01 -07:00
parent 9a59512f75
commit 1e03a9440b
3 changed files with 7 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ func hostPinger(args ...string) (string, error) {
// args returns the arguments for the 'ping' executable
func (p *Ping) args(url string) []string {
// Build the ping command args based on toml config
args := []string{"-c", strconv.Itoa(p.Count)}
args := []string{"-c", strconv.Itoa(p.Count), "-n", "-s", "16"}
if p.PingInterval > 0 {
args = append(args, "-i", strconv.FormatFloat(p.PingInterval, 'f', 1, 64))
}