fix one more float->int conversion warning

This commit is contained in:
arvidn 2020-02-09 00:15:54 +01:00 committed by Arvid Norberg
parent 0a4a06ce74
commit ad83b1c0eb
1 changed files with 1 additions and 1 deletions

View File

@ -780,7 +780,7 @@ void natpmp::on_reply(error_code const& e
}
else
{
m->expires = aux::time_now() + seconds(int(lifetime * 0.7f));
m->expires = aux::time_now() + seconds(lifetime * 3 / 4);
m->external_port = public_port;
if (!external_addr.is_unspecified())
m->external_address = external_addr;