fix to previous timer check-in that broke the api

This commit is contained in:
Arvid Norberg 2007-04-07 03:05:59 +00:00
parent 5f3797cf80
commit baecc64131
2 changed files with 3 additions and 3 deletions

View File

@ -289,7 +289,7 @@ namespace libtorrent
// This overrides the default announce interval, and no
// announce will take place until the given time has
// timed out.
void force_reannounce(time_duration) const;
void force_reannounce(boost::posix_time::time_duration) const;
// returns the name of this torrent, in case it doesn't
// have metadata it returns the name assigned to it

View File

@ -640,7 +640,7 @@ namespace libtorrent
}
void torrent_handle::force_reannounce(
time_duration duration) const
boost::posix_time::time_duration duration) const
{
INVARIANT_CHECK;
@ -652,7 +652,7 @@ namespace libtorrent
using boost::posix_time::second_clock;
t->force_tracker_request(time_now()
+ duration);
+ seconds(duration.total_seconds()));
}
void torrent_handle::force_reannounce() const