Skip to content
Permalink
Browse files

Update sync_info to include peer state

  • Loading branch information...
miltonf committed Mar 24, 2019
1 parent 803b00b commit 8fe68d156298981a17532080a8b6bd9ce4df8b13
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/daemon/rpc_command_executor.cpp
@@ -1896,7 +1896,7 @@ bool t_rpc_command_executor::sync_info()
for (const auto &s: res.spans)
if (s.rate > 0.0f && s.connection_id == p.info.connection_id)
nblocks += s.nblocks, size += s.size;
tools::success_msg_writer() << address << " " << epee::string_tools::pad_string(p.info.peer_id, 16, '0', true) << " " << p.info.height << " " << p.info.current_download << " kB/s, " << nblocks << " blocks / " << size/1e6 << " MB queued";
tools::success_msg_writer() << address << " " << epee::string_tools::pad_string(p.info.peer_id, 16, '0', true) << " " << epee::string_tools::pad_string(p.info.state, 16) << " " << p.info.height << " " << p.info.current_download << " kB/s, " << nblocks << " blocks / " << size/1e6 << " MB queued";
}

uint64_t total_size = 0;

0 comments on commit 8fe68d1

Please sign in to comment.
You can’t perform that action at this time.