Skip to content

Commit

Permalink
Merge pull request #322 from mahendrapaipuri/fix_errorno_psi
Browse files Browse the repository at this point in the history
Add `EOPNOTSUPP` to err filter for PSI data
  • Loading branch information
dmcgowan authored Jan 17, 2024
2 parents 1a0f8bf + 771e32a commit c00d22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgroup2/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ func getStatPSIFromFile(path string) *stats.PSIStats {
}

if err := sc.Err(); err != nil {
if !errors.Is(err, unix.ENOTSUP) {
if !errors.Is(err, unix.ENOTSUP) && !errors.Is(err, unix.EOPNOTSUPP) {
logrus.Errorf("unable to parse PSI data: %v", err)
}
return nil
Expand Down

0 comments on commit c00d22e

Please sign in to comment.