fixed bug in next_announce_in

This commit is contained in:
Arvid Norberg 2011-06-25 19:29:06 +00:00
parent 0093229d27
commit f5d6f885e3
1 changed files with 2 additions and 2 deletions

View File

@ -424,10 +424,10 @@ namespace libtorrent
}
int announce_entry::next_announce_in() const
{ return total_seconds(time_now() - next_announce); }
{ return total_seconds(next_announce - time_now()); }
int announce_entry::min_announce_in() const
{ return total_seconds(time_now() - min_announce); }
{ return total_seconds(min_announce - time_now()); }
void announce_entry::failed(int retry_interval)
{