fix(inputs.diskio): Update path to in /sys (#15155)
This commit is contained in:
parent
77264764b6
commit
0e5d4d8ac8
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue