mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 08:34:40 +03:00
update latest prometheus client dependency and its dependencies
This commit is contained in:
11
vendor/github.com/prometheus/procfs/fs.go
generated
vendored
11
vendor/github.com/prometheus/procfs/fs.go
generated
vendored
@ -20,7 +20,8 @@ import (
|
||||
// FS represents the pseudo-filesystem sys, which provides an interface to
|
||||
// kernel data structures.
|
||||
type FS struct {
|
||||
proc fs.FS
|
||||
proc fs.FS
|
||||
isReal bool
|
||||
}
|
||||
|
||||
// DefaultMountPoint is the common mount point of the proc filesystem.
|
||||
@ -39,5 +40,11 @@ func NewFS(mountPoint string) (FS, error) {
|
||||
if err != nil {
|
||||
return FS{}, err
|
||||
}
|
||||
return FS{fs}, nil
|
||||
|
||||
isReal, err := isRealProc(mountPoint)
|
||||
if err != nil {
|
||||
return FS{}, err
|
||||
}
|
||||
|
||||
return FS{fs, isReal}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user