fixed client_test to use bitfield type
This commit is contained in:
parent
68c31e48dc
commit
c7c1a3913e
|
@ -65,6 +65,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "libtorrent/alert_types.hpp"
|
#include "libtorrent/alert_types.hpp"
|
||||||
#include "libtorrent/ip_filter.hpp"
|
#include "libtorrent/ip_filter.hpp"
|
||||||
#include "libtorrent/magnet_uri.hpp"
|
#include "libtorrent/magnet_uri.hpp"
|
||||||
|
#include "libtorrent/bitfield.hpp"
|
||||||
|
|
||||||
using boost::bind;
|
using boost::bind;
|
||||||
|
|
||||||
|
@ -238,7 +239,7 @@ std::string const& add_suffix(float val)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const& piece_bar(std::vector<bool> const& p, int width)
|
std::string const& piece_bar(libtorrent::bitfield const& p, int width)
|
||||||
{
|
{
|
||||||
#ifdef ANSI_TERMINAL_COLORS
|
#ifdef ANSI_TERMINAL_COLORS
|
||||||
static const char* lookup[] =
|
static const char* lookup[] =
|
||||||
|
|
Loading…
Reference in New Issue