mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Clarify even further that proc/PID/net/tcp varies by namespace
This commit is contained in:
@@ -110,10 +110,12 @@ func readProcessConnections(buf *bytes.Buffer, namespaceProcs []*process.Process
|
||||
// try next process
|
||||
continue
|
||||
}
|
||||
// Return after succeeding on any process
|
||||
// (proc/PID/net/tcp and proc/PID/net/tcp6 are identical for all the processes in the same namespace)
|
||||
return read+read6 > 0, nil
|
||||
}
|
||||
|
||||
// would be cool to have an or operation between errors
|
||||
// It would be cool an "or" error combinator
|
||||
if errRead != nil {
|
||||
return false, errRead
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user