File tree Expand file tree Collapse file tree
plugins/inputs/internet_speed Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ require (
121121 github.com/safchain/ethtool v0.0.0-20200218184317-f459e2d13664
122122 github.com/sensu/sensu-go/api/core/v2 v2.13.0
123123 github.com/shirou/gopsutil/v3 v3.22.3
124- github.com/showwin/speedtest-go v1.1.4
124+ github.com/showwin/speedtest-go v1.1.5
125125 github.com/signalfx/golib/v3 v3.3.43
126126 github.com/sirupsen/logrus v1.8.1
127127 github.com/sleepinggenius2/gosmi v0.4.4
Original file line number Diff line number Diff line change @@ -2041,8 +2041,8 @@ github.com/shirou/gopsutil/v3 v3.22.3/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H
20412041github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24 /go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4 =
20422042github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ =
20432043github.com/shopspring/decimal v1.2.0 /go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o =
2044- github.com/showwin/speedtest-go v1.1.4 h1:pcY1W5LYZu44lH6Fuu80nu/Pj67n//VArlZudbAgR6E =
2045- github.com/showwin/speedtest-go v1.1.4 /go.mod h1:dJugxvC/AQDt4HQQKZ9lKNa2+b1c8nzj9IL0a/F8l1U =
2044+ github.com/showwin/speedtest-go v1.1.5 h1:dud1cS2Qppbm50BrTKzrBj78wY78ORL5LIiRjKexmdY =
2045+ github.com/showwin/speedtest-go v1.1.5 /go.mod h1:dJugxvC/AQDt4HQQKZ9lKNa2+b1c8nzj9IL0a/F8l1U =
20462046github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e /go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk =
20472047github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041 /go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ =
20482048github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 /go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg =
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ func (is *InternetSpeed) Gather(acc telegraf.Accumulator) error {
2828 if err != nil {
2929 return fmt .Errorf ("fetching user info failed: %v" , err )
3030 }
31- serverList , err := speedtest .FetchServerList (user )
31+ serverList , err := speedtest .FetchServers (user )
3232 if err != nil {
3333 return fmt .Errorf ("fetching server list failed: %v" , err )
3434 }
35- if len (serverList . Servers ) < 1 {
35+ if len (serverList ) < 1 {
3636 return fmt .Errorf ("no servers found" )
3737 }
38- s = serverList . Servers [0 ]
38+ s = serverList [0 ]
3939 is .Log .Debugf ("Found server: %v" , s )
4040 if is .Cache {
4141 is .serverCache = s
You can’t perform that action at this time.
0 commit comments