diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-05-04 01:56:42 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-05-11 17:58:14 -0700 |
commit | b3ed4236beb7f68e1720ceb3da15e0c3682ef629 (patch) | |
tree | c5a0bf72e529ebc73ca8c665b2aefa6967af4fbf /src/main.cpp | |
parent | fc684ad8afae19c209701230837d338c5a6c1f72 (diff) | |
download | bitcoin-b3ed4236beb7f68e1720ceb3da15e0c3682ef629.tar.xz |
Cache tweak and logging improvements
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 916e1a6093..a1b3b81905 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1966,10 +1966,10 @@ void static UpdateTip(CBlockIndex *pindexNew) { nTimeBestReceived = GetTime(); mempool.AddTransactionsUpdated(1); - LogPrintf("%s: new best=%s height=%d log2_work=%.8g tx=%lu date=%s progress=%f cache=%u\n", __func__, + LogPrintf("%s: new best=%s height=%d log2_work=%.8g tx=%lu date=%s progress=%f cache=%.1fMiB(%utx)\n", __func__, chainActive.Tip()->GetBlockHash().ToString(), chainActive.Height(), log(chainActive.Tip()->nChainWork.getdouble())/log(2.0), (unsigned long)chainActive.Tip()->nChainTx, DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime()), - Checkpoints::GuessVerificationProgress(chainParams.Checkpoints(), chainActive.Tip()), (unsigned int)pcoinsTip->GetCacheSize()); + Checkpoints::GuessVerificationProgress(chainParams.Checkpoints(), chainActive.Tip()), pcoinsTip->DynamicMemoryUsage() * (1.0 / (1<<20)), pcoinsTip->GetCacheSize()); cvBlockChange.notify_all(); |