diff --git a/net/net_aix_cgo.go b/net/net_aix_cgo.go index a45a5b7..c440051 100644 --- a/net/net_aix_cgo.go +++ b/net/net_aix_cgo.go @@ -30,7 +30,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat, iocounters = append(iocounters, n) } if pernic == false { - return getIOCountersAll(iocounters) + return getIOCountersAll(iocounters), nil } return iocounters, nil } diff --git a/net/net_aix_nocgo.go b/net/net_aix_nocgo.go index f63a21e..2f4172a 100644 --- a/net/net_aix_nocgo.go +++ b/net/net_aix_nocgo.go @@ -89,7 +89,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat, return nil, err } if pernic == false { - return getIOCountersAll(iocounters) + return getIOCountersAll(iocounters), nil } return iocounters, nil }