Skip to content

Commit

Permalink
fix one more float->int conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Feb 9, 2020
1 parent 0a4a06c commit ad83b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/natpmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad83b1c

Please sign in to comment.