mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
ethdb: handle iostats syntax error
This commit is contained in:
parent
6a5af0a2b0
commit
894275f183
1 changed files with 4 additions and 0 deletions
|
|
@ -243,6 +243,10 @@ func (db *LDBDatabase) meter(refresh time.Duration) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
parts := strings.Split(ioStats, " ")
|
parts := strings.Split(ioStats, " ")
|
||||||
|
if len(parts) < 2 {
|
||||||
|
db.log.Error("Bad syntax of ioStats", "ioStats", ioStats)
|
||||||
|
return
|
||||||
|
}
|
||||||
r := strings.Split(parts[0], ":")
|
r := strings.Split(parts[0], ":")
|
||||||
if len(r) < 2 {
|
if len(r) < 2 {
|
||||||
db.log.Error("Bad syntax of read entry", "entry", parts[0])
|
db.log.Error("Bad syntax of read entry", "entry", parts[0])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue