mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/state: fix disk hit rate
This commit is contained in:
parent
42b5737bac
commit
90badc88a0
1 changed files with 2 additions and 2 deletions
|
|
@ -621,9 +621,9 @@ func (r *readerWithCacheStats) Storage(addr common.Address, slot common.Hash) (c
|
|||
// If the slot was read from the underlying storage, count
|
||||
// the presence statistics.
|
||||
if value == (common.Hash{}) {
|
||||
r.accountDiskMiss.Add(1)
|
||||
r.storageDiskMiss.Add(1)
|
||||
} else {
|
||||
r.accountDiskHit.Add(1)
|
||||
r.storageDiskHit.Add(1)
|
||||
}
|
||||
}
|
||||
return value, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue