fix another integer overflow issue from switching to chrono

This commit is contained in:
Arvid Norberg 2014-07-25 09:03:56 +00:00
parent b78fdc630d
commit af0bb0abd8
1 changed files with 4 additions and 1 deletions

View File

@ -9881,7 +9881,10 @@ namespace libtorrent
if (i != time_critical.end())
{
deadline = total_milliseconds(i->deadline - now) / 1000.f;
last_request = total_milliseconds(now - i->last_requested) / 1000.f;
if (i->last_requested == min_time())
last_request = -1;
else
last_request = total_milliseconds(now - i->last_requested) / 1000.f;
timed_out = i->timed_out;
}