mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 05:32:31 +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_DEFINE(API_VERSION, 3, api version)
|
||||
AC_DEFINE(API_VERSION, 4, api version)
|
||||
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
@@ -334,8 +334,14 @@ d_chunks_seen(core::Download* download) {
|
||||
|
||||
if (seen == NULL)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user