fix another integer overflow issue from switching to chrono
This commit is contained in:
parent
b78fdc630d
commit
af0bb0abd8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue