diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-23 13:16:05 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-23 13:16:05 +0000 |
| commit | 06c8b94925e274b497bf9bcad809281b4d971d0a (patch) | |
| tree | 8ed082e6615ca70663106f66c77a5be25922b5fa /src/daemon/rpc_command_executor.cpp | |
| parent | 263cc48c4894496cd34733d2b04018b953d0d1ac (diff) | |
| download | monzero-core-06c8b94925e274b497bf9bcad809281b4d971d0a.tar.gz monzero-core-06c8b94925e274b497bf9bcad809281b4d971d0a.tar.xz monzero-core-06c8b94925e274b497bf9bcad809281b4d971d0a.zip | |
daemon: fix blockchain height display not updating after sync
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
| -rw-r--r-- | src/daemon/rpc_command_executor.cpp | 2 |
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 { |
