mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 04:16:32 +02:00
daemon: fix ban seconds being misinterpreted as absolute
Absolute to relative conversion is already done by the callee.
This commit is contained in:
parent
34ecfdbf15
commit
78cc10f3fa
@ -1123,11 +1123,9 @@ bool t_rpc_command_executor::print_bans()
|
||||
}
|
||||
}
|
||||
|
||||
time_t now = time(nullptr);
|
||||
for (auto i = res.bans.begin(); i != res.bans.end(); ++i)
|
||||
{
|
||||
time_t seconds = i->seconds - now;
|
||||
tools::msg_writer() << epee::string_tools::get_ip_string_from_int32(i->ip) << " banned for " << seconds << " seconds";
|
||||
tools::msg_writer() << epee::string_tools::get_ip_string_from_int32(i->ip) << " banned for " << i->seconds << " seconds";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user