mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-20 07:26:08 +01:00
Merge pull request #275 from thomasf/mdstat-tabs
Fix mdstat tabs parsing
This commit is contained in:
commit
b55019f10b
@ -142,7 +142,7 @@ func parseMdstat(mdStatusFilePath string) ([]mdStatus, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if l[0] == ' ' {
|
if l[0] == ' ' || l[0] == '\t' {
|
||||||
// Those lines are not the beginning of a md-section.
|
// Those lines are not the beginning of a md-section.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user