mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 15:12:30 +00:00
Return hex instead of binary for 'd.chunks_seen'.
This commit is contained in:
@@ -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