mirror of
https://github.com/datarhei/core.git
synced 2025-10-07 17:01:01 +08:00
Upgrade dependencies
This commit is contained in:
2
vendor/github.com/prometheus/procfs/proc.go
generated
vendored
2
vendor/github.com/prometheus/procfs/proc.go
generated
vendored
@@ -244,7 +244,7 @@ func (p Proc) FileDescriptorTargets() ([]string, error) {
|
||||
// a process.
|
||||
func (p Proc) FileDescriptorsLen() (int, error) {
|
||||
// Use fast path if available (Linux v6.2): https://github.com/torvalds/linux/commit/f1f1f2569901
|
||||
if p.fs.real {
|
||||
if p.fs.isReal {
|
||||
stat, err := os.Stat(p.path("fd"))
|
||||
if err != nil {
|
||||
return 0, err
|
||||
|
Reference in New Issue
Block a user