From 9a775aab97d1312b54023e516ee4a9fa78688d5d Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Fri, 11 Jul 2014 02:11:15 +0400 Subject: [PATCH] format the network weight value as integer --- src/qt/bitcoingui.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index d8bd0a1..4698c64 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -645,7 +645,7 @@ void BitcoinGUI::updateMining() { labelMiningIcon->setPixmap(QIcon(":/icons/mining_active").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); - double dNetworkWeight = clientModel->getPoSKernelPS(); + uint64 nNetworkWeight = clientModel->getPoSKernelPS(); /* double dDifficulty = clientModel->getDifficulty(true); QString msg; @@ -664,7 +664,7 @@ void BitcoinGUI::updateMining() labelMiningIcon->setToolTip(tr("Stake miner is active\nYour current stake weight is %1\nNetwork weight is %2\nAverage block generation time is %3").arg(nTotalWeight).arg(dNetworkWeight).arg(msg)); */ - labelMiningIcon->setToolTip(tr("Stake miner is active\nYour current stake weight is %1\nNetwork weight is %2").arg(nTotalWeight).arg(dNetworkWeight)); + labelMiningIcon->setToolTip(tr("Stake miner is active\nYour current stake weight is %1\nNetwork weight is %2").arg(nTotalWeight).arg(nNetworkWeight)); } else labelMiningIcon->setToolTip(tr("No suitable inputs were found")); -- 1.7.1