fix(inputs.diskio): Update path to in /sys (#15155)

This commit is contained in:
Joshua Powers 2024-04-16 13:08:58 -06:00 committed by GitHub
parent 77264764b6
commit 0e5d4d8ac8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)