mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-13 20:56:17 +00:00
Return hex instead of binary for 'd.chunks_seen'.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
AC_INIT(rtorrent, 0.9.1, jaris@ifi.uio.no)
|
AC_INIT(rtorrent, 0.9.1, jaris@ifi.uio.no)
|
||||||
|
|
||||||
AC_DEFINE(API_VERSION, 3, api version)
|
AC_DEFINE(API_VERSION, 4, api version)
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
|||||||
@@ -334,8 +334,14 @@ d_chunks_seen(core::Download* download) {
|
|||||||
|
|
||||||
if (seen == NULL)
|
if (seen == NULL)
|
||||||
return std::string();
|
return std::string();
|
||||||
else
|
|
||||||
return std::string((const char*)seen, download->download()->file_list()->size_chunks());
|
uint32_t size = download->download()->file_list()->size_chunks();
|
||||||
|
|
||||||
|
std::string result;
|
||||||
|
result.resize(size * 2);
|
||||||
|
|
||||||
|
rak::transform_hex((const char*)seen, (const char*)seen + size, result.begin());
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
torrent::Object
|
torrent::Object
|
||||||
|
|||||||
Reference in New Issue
Block a user