daemon: fix merge error removing the "never seen before" timestamp check

This commit is contained in:
moneromooo-monero 2019-08-20 12:48:55 +00:00
parent c9df9d683a
commit 5a4c6cc3a8
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

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);