From 3a1b1a2fa2d7b56fb90518c2f1506c6f85cba948 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 28 May 2020 20:45:25 +1200 Subject: [PATCH] metrics: Fix indents --- src/metrics.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/metrics.cpp b/src/metrics.cpp index df4a127b0..8c37d9f68 100644 --- a/src/metrics.cpp +++ b/src/metrics.cpp @@ -287,22 +287,22 @@ int printStats(bool mining) auto localsolps = GetLocalSolPS(); if (IsInitialBlockDownload(Params())) { - if (fReindex) { - int downloadPercent = nSizeReindexed * 100 / nFullSizeToReindex; - std::cout << " " << _("Reindexing blocks") << " | " << DisplaySize(nSizeReindexed) << " / " << DisplaySize(nFullSizeToReindex) << " (" << downloadPercent << "%, " << height << " " << _("blocks") << ")" << std::endl; - } else { - int nHeaders = currentHeadersHeight; - if (nHeaders < 0) - nHeaders = 0; - int netheight = currentHeadersHeight == -1 || currentHeadersTime == 0 ? - 0 : EstimateNetHeight(params, currentHeadersHeight, currentHeadersTime); - if (netheight < nHeaders) - netheight = nHeaders; - if (netheight <= 0) - netheight = 1; - int downloadPercent = height * 100 / netheight; - std::cout << " " << _("Downloading blocks") << " | " << height << " (" << nHeaders << " " << _("headers") << ") / ~" << netheight << " (" << downloadPercent << "%)" << std::endl; - } + if (fReindex) { + int downloadPercent = nSizeReindexed * 100 / nFullSizeToReindex; + std::cout << " " << _("Reindexing blocks") << " | " << DisplaySize(nSizeReindexed) << " / " << DisplaySize(nFullSizeToReindex) << " (" << downloadPercent << "%, " << height << " " << _("blocks") << ")" << std::endl; + } else { + int nHeaders = currentHeadersHeight; + if (nHeaders < 0) + nHeaders = 0; + int netheight = currentHeadersHeight == -1 || currentHeadersTime == 0 ? + 0 : EstimateNetHeight(params, currentHeadersHeight, currentHeadersTime); + if (netheight < nHeaders) + netheight = nHeaders; + if (netheight <= 0) + netheight = 1; + int downloadPercent = height * 100 / netheight; + std::cout << " " << _("Downloading blocks") << " | " << height << " (" << nHeaders << " " << _("headers") << ") / ~" << netheight << " (" << downloadPercent << "%)" << std::endl; + } } else { std::cout << " " << _("Block height") << " | " << height << std::endl; }