From f5d6f885e3429ac57b2e5a8a16ff43b2a23ed87e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 25 Jun 2011 19:29:06 +0000 Subject: [PATCH] fixed bug in next_announce_in --- src/torrent_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 60d976b19..178753cef 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -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) {