From 06c8b94925e274b497bf9bcad809281b4d971d0a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 23 Nov 2015 13:16:05 +0000 Subject: [PATCH] daemon: fix blockchain height display not updating after sync --- src/daemon/rpc_command_executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index a28b4290..176df81f 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -283,7 +283,7 @@ bool t_rpc_command_executor::show_status() { tools::success_msg_writer() << boost::format("Height: %llu/%llu (%.1f%%) on %s, net hash %s, v%u, %s, %u+%u connections") % (unsigned long long)ires.height - % (unsigned long long)(ires.target_height ? ires.target_height : ires.height) + % (unsigned long long)(ires.target_height >= ires.height ? ires.target_height : ires.height) % (100.0f * ires.height / (ires.target_height ? ires.target_height < ires.height ? ires.height : ires.target_height : ires.height)) % (ires.testnet ? "testnet" : "mainnet") % [&ires]()->std::string {