format typo fixed
This commit is contained in:
parent
3c1e1f1182
commit
da3a9230db
|
@ -5,12 +5,12 @@ package ping
|
|||
import (
|
||||
"errors"
|
||||
"os/exec"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
"regexp"
|
||||
|
||||
"github.com/influxdata/telegraf"
|
||||
"github.com/influxdata/telegraf/internal"
|
||||
|
@ -160,8 +160,10 @@ func (p *Ping) args(url string) []string {
|
|||
}
|
||||
args = append(args, url)
|
||||
switch p.IPVersion {
|
||||
case 4: args = append(args, "-4")
|
||||
case 6: args = append(args, "-6")
|
||||
case 4:
|
||||
args = append(args, "-4")
|
||||
case 6:
|
||||
args = append(args, "-6")
|
||||
}
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in New Issue