aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-11-24 23:04:01 +0200
committerRiccardo Spagni <ric@spagni.net>2015-11-24 23:04:04 +0200
commit64d738477976b9bcdcf34312b97b16d4657ce85c (patch)
treea310b2f15a5a1a35d4823a1ae9c1b62719bc0345 /src
parentMerge pull request #499 (diff)
parentdaemon: fix blockchain height display not updating after sync (diff)
downloadmonero-64d738477976b9bcdcf34312b97b16d4657ce85c.tar.xz
Merge pull request #500
06c8b94 daemon: fix blockchain height display not updating after sync (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index a28b4290d..176df81fc 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 {