metrics: Fix indents
This commit is contained in:
parent
68d25c9259
commit
3a1b1a2fa2
|
@ -287,22 +287,22 @@ int printStats(bool mining)
|
||||||
auto localsolps = GetLocalSolPS();
|
auto localsolps = GetLocalSolPS();
|
||||||
|
|
||||||
if (IsInitialBlockDownload(Params())) {
|
if (IsInitialBlockDownload(Params())) {
|
||||||
if (fReindex) {
|
if (fReindex) {
|
||||||
int downloadPercent = nSizeReindexed * 100 / nFullSizeToReindex;
|
int downloadPercent = nSizeReindexed * 100 / nFullSizeToReindex;
|
||||||
std::cout << " " << _("Reindexing blocks") << " | " << DisplaySize(nSizeReindexed) << " / " << DisplaySize(nFullSizeToReindex) << " (" << downloadPercent << "%, " << height << " " << _("blocks") << ")" << std::endl;
|
std::cout << " " << _("Reindexing blocks") << " | " << DisplaySize(nSizeReindexed) << " / " << DisplaySize(nFullSizeToReindex) << " (" << downloadPercent << "%, " << height << " " << _("blocks") << ")" << std::endl;
|
||||||
} else {
|
} else {
|
||||||
int nHeaders = currentHeadersHeight;
|
int nHeaders = currentHeadersHeight;
|
||||||
if (nHeaders < 0)
|
if (nHeaders < 0)
|
||||||
nHeaders = 0;
|
nHeaders = 0;
|
||||||
int netheight = currentHeadersHeight == -1 || currentHeadersTime == 0 ?
|
int netheight = currentHeadersHeight == -1 || currentHeadersTime == 0 ?
|
||||||
0 : EstimateNetHeight(params, currentHeadersHeight, currentHeadersTime);
|
0 : EstimateNetHeight(params, currentHeadersHeight, currentHeadersTime);
|
||||||
if (netheight < nHeaders)
|
if (netheight < nHeaders)
|
||||||
netheight = nHeaders;
|
netheight = nHeaders;
|
||||||
if (netheight <= 0)
|
if (netheight <= 0)
|
||||||
netheight = 1;
|
netheight = 1;
|
||||||
int downloadPercent = height * 100 / netheight;
|
int downloadPercent = height * 100 / netheight;
|
||||||
std::cout << " " << _("Downloading blocks") << " | " << height << " (" << nHeaders << " " << _("headers") << ") / ~" << netheight << " (" << downloadPercent << "%)" << std::endl;
|
std::cout << " " << _("Downloading blocks") << " | " << height << " (" << nHeaders << " " << _("headers") << ") / ~" << netheight << " (" << downloadPercent << "%)" << std::endl;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
std::cout << " " << _("Block height") << " | " << height << std::endl;
|
std::cout << " " << _("Block height") << " | " << height << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue