mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 06:48:52 +00: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)
|
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 " << i->seconds << " seconds";
|
||||||
tools::msg_writer() << epee::string_tools::get_ip_string_from_int32(i->ip) << " banned for " << seconds << " seconds";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user