From: CryptoManiac Date: Thu, 10 Jul 2014 22:11:15 +0000 (+0400) Subject: format the network weight value as integer X-Git-Tag: v0.4.4.6-nvc-update4~1^2 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=9a775aab97d1312b54023e516ee4a9fa78688d5d;hp=de1077975fe6f8b0be3982b0e2708f0ae5c9cabe;p=novacoin.git format the network weight value as integer --- 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"));