fix build of simulations without deprecated functions
This commit is contained in:
parent
7640c0641e
commit
cb867a6edc
|
@ -67,7 +67,7 @@ TORRENT_TEST(close_file_interval)
|
|||
}
|
||||
|
||||
torrent_handle h = ses.get_torrents().front();
|
||||
std::vector<pool_file_status> file_status = h.file_status();
|
||||
std::vector<pool_file_status> const file_status = h.file_status();
|
||||
printf("%d: %d files\n", ticks, int(file_status.size()));
|
||||
if (ticks > 0 && ticks < 19)
|
||||
{
|
||||
|
@ -121,8 +121,7 @@ TORRENT_TEST(file_pool_size)
|
|||
return true;
|
||||
}
|
||||
|
||||
std::vector<pool_file_status> status;
|
||||
ses.get_torrents().at(0).file_status(status);
|
||||
std::vector<pool_file_status> const status = ses.get_torrents().at(0).file_status();
|
||||
printf("open files: %d\n", int(status.size()));
|
||||
max_files = std::max(max_files, int(status.size()));
|
||||
if (!is_seed(ses)) return false;
|
||||
|
|
Loading…
Reference in New Issue