mirror of
https://github.com/prometheus/node_exporter
synced 2025-04-11 04:01:52 +00:00
Fix mdstat tabs parsing
This commit is contained in:
parent
d48453a61a
commit
32e3445d72
@ -142,7 +142,7 @@ func parseMdstat(mdStatusFilePath string) ([]mdStatus, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
if l[0] == ' ' {
|
||||
if l[0] == ' ' || l[0] == '\t' {
|
||||
// Those lines are not the beginning of a md-section.
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user