Compute db size metrics during initial import

This commit is contained in:
Martin Boehm 2018-03-14 12:40:17 +01:00
parent 84d5c3ea24
commit 22d30ffaa1

View File

@ -303,6 +303,7 @@ func (w *SyncWorker) connectBlockChunk(lower, higher uint32) error {
}
if block.Height%1000 == 0 {
glog.Info("connected block ", block.Height, " ", block.Hash)
go w.metrics.IndexDBSize.Set(float64(w.db.DatabaseSizeOnDisk()))
}
}