fix twice denominatedBalance calculations

This commit is contained in:
UdjinM6 2015-02-12 16:54:24 +03:00
parent 843dc81178
commit 5011bc2e2a

View File

@ -293,7 +293,7 @@ void OverviewPage::updateDarksendProgress()
float denomPart = 0;
if(denominatedBalance > 0)
{
denomPart = (float)pwalletMain->GetNormalizedAnonymizedBalance() / pwalletMain->GetDenominatedBalance();
denomPart = (float)pwalletMain->GetNormalizedAnonymizedBalance() / denominatedBalance;
denomPart = denomPart > 1 ? 1 : denomPart;
}