Skip to content

Commit

Permalink
fix(inputs.diskio): Update path to in /sys (#15155)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0e5d4d8)
  • Loading branch information
powersj committed Apr 22, 2024
1 parent baaa21e commit 26bb276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/diskio/diskio_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (d *DiskIO) diskInfo(devName string) (map[string]string, error) {
// This allows us to also "poison" it during test scenarios
sysBlockPath = ic.sysBlockPath
} else {
sysBlockPath = "/sys/block/" + devName
sysBlockPath = "/sys/class/block/" + devName
}

devInfo, err := readDevData(sysBlockPath)
Expand Down

0 comments on commit 26bb276

Please sign in to comment.