fixed typos
This commit is contained in:
@@ -34,15 +34,16 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "setup_transfer.hpp"
|
#include "setup_transfer.hpp"
|
||||||
|
|
||||||
#include "libtorrent/file_storage.hpp"
|
#include "libtorrent/file_storage.hpp"
|
||||||
|
#include "libtorrent/file.hpp"
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
void setup_test_storage(file_storage& st)
|
void setup_test_storage(file_storage& st)
|
||||||
{
|
{
|
||||||
st.add_file(combine_path("test", "a"), 10000);
|
st.add_file(combine_path("test", "a"), 10000);
|
||||||
st.add_file(combine_path("test", "b", 20000);
|
st.add_file(combine_path("test", "b"), 20000);
|
||||||
st.add_file(combine_path("test", combine_path("c", "a"), 30000);
|
st.add_file(combine_path("test", combine_path("c", "a")), 30000);
|
||||||
st.add_file(combine_path("test", combine_path("c", "b"), 40000);
|
st.add_file(combine_path("test", combine_path("c", "b")), 40000);
|
||||||
|
|
||||||
st.set_piece_length(0x4000);
|
st.set_piece_length(0x4000);
|
||||||
st.set_num_pieces((st.total_size() + st.piece_length() - 1) / 0x4000);
|
st.set_num_pieces((st.total_size() + st.piece_length() - 1) / 0x4000);
|
||||||
|
Reference in New Issue
Block a user