feat: bump github.com/prometheus/procfs to v0.0.2

This commit is contained in:
draveness
2019-09-22 20:03:45 +08:00
parent ac9b2516d4
commit 57da7a3508
61 changed files with 2450 additions and 1811 deletions

View File

@@ -29,9 +29,9 @@ type Namespace struct {
// Namespaces contains all of the namespaces that the process is contained in.
type Namespaces map[string]Namespace
// NewNamespaces reads from /proc/[pid/ns/* to get the namespaces of which the
// Namespaces reads from /proc/<pid>/ns/* to get the namespaces of which the
// process is a member.
func (p Proc) NewNamespaces() (Namespaces, error) {
func (p Proc) Namespaces() (Namespaces, error) {
d, err := os.Open(p.path("ns"))
if err != nil {
return nil, err