Skip to content
Snippets Groups Projects
Unverified Commit cf7707db authored by Levente Pap's avatar Levente Pap Committed by GitHub
Browse files

Fix bug in DBStats() (#667)

parent 2bf9bf9d
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ func (tangle *Tangle) DBStats() (solidCount int, messageCount int, avgSolidifica ...@@ -155,7 +155,7 @@ func (tangle *Tangle) DBStats() (solidCount int, messageCount int, avgSolidifica
if solidCount > 0 { if solidCount > 0 {
avgSolidificationTime = float64(sumSolidificationTime.Milliseconds()) / float64(solidCount) avgSolidificationTime = float64(sumSolidificationTime.Milliseconds()) / float64(solidCount)
} }
tangle.messageMetadataStorage.ForEach(func(key []byte, cachedObject objectstorage.CachedObject) bool { tangle.missingMessageStorage.ForEach(func(key []byte, cachedObject objectstorage.CachedObject) bool {
cachedObject.Consume(func(object objectstorage.StorableObject) { cachedObject.Consume(func(object objectstorage.StorableObject) {
missingMessageCount++ missingMessageCount++
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment