forked from premiere/premiere-libtorrent
storage fastresume fix
This commit is contained in:
parent
964e8b93d0
commit
9447693202
|
@ -1445,6 +1445,9 @@ namespace libtorrent
|
||||||
slots.push_back((*i >= 0) ? *i : unassigned);
|
slots.push_back((*i >= 0) ? *i : unassigned);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rd["allocation"] = m_storage_mode == storage_mode_sparse?"sparse"
|
||||||
|
:m_storage_mode == storage_mode_allocate?"full":"compact";
|
||||||
}
|
}
|
||||||
|
|
||||||
void piece_manager::mark_failed(int piece_index)
|
void piece_manager::mark_failed(int piece_index)
|
||||||
|
|
|
@ -2461,9 +2461,6 @@ namespace libtorrent
|
||||||
ret["num_seeds"] = seeds;
|
ret["num_seeds"] = seeds;
|
||||||
ret["num_downloaders"] = downloaders;
|
ret["num_downloaders"] = downloaders;
|
||||||
|
|
||||||
ret["allocation"] = m_storage_mode == storage_mode_sparse?"sparse"
|
|
||||||
:m_storage_mode == storage_mode_allocate?"full":"compact";
|
|
||||||
|
|
||||||
const sha1_hash& info_hash = torrent_file().info_hash();
|
const sha1_hash& info_hash = torrent_file().info_hash();
|
||||||
ret["info-hash"] = std::string((char*)info_hash.begin(), (char*)info_hash.end());
|
ret["info-hash"] = std::string((char*)info_hash.begin(), (char*)info_hash.end());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue