Skip to content

Commit

Permalink
Show percentage progress on syncing progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Yanes committed Dec 13, 2012
1 parent 5fe3f46 commit 8e530a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/bitcoingui.cpp
Expand Up @@ -534,7 +534,7 @@ void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)

progressBarLabel->setText(importText);
progressBarLabel->setVisible(true);
progressBar->setFormat(tr("~%n block(s) remaining", "", nRemainingBlocks));
progressBar->setFormat(tr("~%1 block(s) remaining (%2% done)").arg(nRemainingBlocks).arg(nPercentageDone, 0, 'f', 2));
progressBar->setMaximum(nTotalBlocks);
progressBar->setValue(count);
progressBar->setVisible(true);
Expand Down

0 comments on commit 8e530a7

Please sign in to comment.