Skip to content

Commit

Permalink
Merge pull request #5573
Browse files Browse the repository at this point in the history
c07bbd5 daemon: fix 'never seen before' time span display for peers (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jul 24, 2019
2 parents 347d6b2 + c07bbd5 commit 5cecf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/rpc_command_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace {

std::string id_str;
std::string port_str;
std::string elapsed = epee::misc_utils::get_time_interval_string(now - last_seen);
std::string elapsed = peer.last_seen == 0 ? "never" : epee::misc_utils::get_time_interval_string(now - last_seen);
std::string ip_str = epee::string_tools::get_ip_string_from_int32(peer.ip);
std::stringstream peer_id_str;
peer_id_str << std::hex << std::setw(16) << peer.id;
Expand Down

0 comments on commit 5cecf41

Please sign in to comment.