format typo fixed

This commit is contained in:
Christian Loew 2016-10-15 19:32:55 +02:00
parent 3c1e1f1182
commit da3a9230db
1 changed files with 7 additions and 5 deletions

View File

@ -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