Skip to content

Commit

Permalink
fixup: apply gci
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Jun 8, 2024
1 parent 436e078 commit 3824db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/florianl/go-diag v0.0.1 h1:NjjG/z0eQ7J6+KrIv3hv5weH6Lxq+KBr45HPc/qdRQo=
github.com/florianl/go-diag v0.0.1/go.mod h1:Rkjs8DWYe7g4wuw4BQbYXBuUU7vaf1s2ym8N+QpCZt0=
github.com/florianl/go-diag v0.0.2 h1:4zqTkVM4egFpsEbWVh9ZAam+maGEjPIuzEAcXXsSSl4=
github.com/florianl/go-diag v0.0.2/go.mod h1:Rkjs8DWYe7g4wuw4BQbYXBuUU7vaf1s2ym8N+QpCZt0=
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
Expand Down
5 changes: 3 additions & 2 deletions net/net_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import (
"syscall"

"github.com/florianl/go-diag"
"github.com/shirou/gopsutil/v4/internal/common"
"golang.org/x/sys/unix"

"github.com/shirou/gopsutil/v4/internal/common"
)

const ( // Conntrack Column numbers
Expand Down Expand Up @@ -824,7 +825,7 @@ func processUnixDiagWithContext(nl *diag.Diag, inodes map[uint32][]inodeMap, fil
return ret, nil
}

func updateMap(src map[uint32][]inodeMap, add map[uint32][]inodeMap) map[uint32][]inodeMap {
func updateMap(src, add map[uint32][]inodeMap) map[uint32][]inodeMap {
for key, value := range add {
a, exists := src[key]
if !exists {
Expand Down

0 comments on commit 3824db3

Please sign in to comment.