Skip to content

Commit

Permalink
Fix netdev signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Sep 28, 2023
1 parent dfd66e0 commit 302c8c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion collector/netdev_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"golang.org/x/sys/unix"
)

func getNetDevStats(filter *deviceFilter, logger log.Logger) (netDevStats, error) {
func getNetDevStats(_ *NodeCollectorConfig, _ *bool, filter *deviceFilter, logger log.Logger) (netDevStats, error) {
netDev := netDevStats{}

ifs, err := net.Interfaces()
Expand Down
2 changes: 1 addition & 1 deletion collector/netdev_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
*/
import "C"

func getNetDevStats(filter *deviceFilter, logger log.Logger) (netDevStats, error) {
func getNetDevStats(_ *NodeCollectorConfig, _ *bool, filter *deviceFilter, logger log.Logger) (netDevStats, error) {
netDev := netDevStats{}

var ifap, ifa *C.struct_ifaddrs
Expand Down
2 changes: 1 addition & 1 deletion collector/netdev_openbsd_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"unsafe"
)

func getNetDevStats(filter *deviceFilter, logger log.Logger) (netDevStats, error) {
func getNetDevStats(_ *NodeCollectorConfig, _ *bool, filter *deviceFilter, logger log.Logger) (netDevStats, error) {
netDev := netDevStats{}

mib := [6]_C_int{unix.CTL_NET, unix.AF_ROUTE, 0, 0, unix.NET_RT_IFLIST, 0}
Expand Down

0 comments on commit 302c8c8

Please sign in to comment.