Merge pull request #5830

5a4c6cc daemon: fix merge error removing the 'never seen before' timestamp check (moneromooo-monero)
This commit is contained in:
luigi1111 2019-09-08 19:40:29 -05:00
commit da4512639e
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace {
time(&now);
time_t last_seen = static_cast<time_t>(peer.last_seen);
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 id_str = epee::string_tools::pad_string(epee::string_tools::to_string_hex(peer.id), 16, '0', true);
std::string port_str;
epee::string_tools::xtype_to_string(peer.port, port_str);