fix %% calculation on keypool generation

This commit is contained in:
UdjinM6 2015-02-15 02:20:58 +03:00
parent a9ff5617e9
commit 287b357e32

View File

@ -2466,7 +2466,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
throw runtime_error("TopUpKeyPool() : writing generated key failed");
setKeyPool.insert(nEnd);
LogPrintf("keypool added key %d, size=%u\n", nEnd, setKeyPool.size());
double dProgress = nEnd / 10.f;
double dProgress = 100.f * nEnd / (nTargetSize + 1);
std::string strMsg = strprintf(_("Loading wallet... (%3.2f %%)"), dProgress);
uiInterface.InitMessage(strMsg);
}