mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
daemon: print peer state in sync_info
It's often relevant
This commit is contained in:
parent
9cc0d4220f
commit
d9d002c3c1
@ -1891,7 +1891,7 @@ bool t_rpc_command_executor::sync_info()
|
|||||||
for (const auto &s: res.spans)
|
for (const auto &s: res.spans)
|
||||||
if (s.rate > 0.0f && s.connection_id == p.info.connection_id)
|
if (s.rate > 0.0f && s.connection_id == p.info.connection_id)
|
||||||
nblocks += s.nblocks, size += s.size;
|
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;
|
uint64_t total_size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user