* Added all the clients to the new ClientList and fixed it so that it

prints the version number.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@805 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-11-16 18:33:45 +00:00
parent cafd4c6090
commit a5e7acc61b
3 changed files with 16 additions and 4 deletions
+9
View File
@@ -46,6 +46,7 @@
#include <torrent/rate.h>
#include <torrent/tracker.h>
#include <torrent/tracker_list.h>
#include <torrent/peer/client_info.h>
#include "core/download.h"
@@ -221,6 +222,14 @@ print_download_percentage_done(char* first, char* last, core::Download* d) {
return print_buffer(first, last, "[%2u%%]", (d->download()->chunks_done() * 100) / d->download()->chunks_total());
}
char*
print_client_version(char* first, char* last, const torrent::ClientInfo& clientInfo) {
return print_buffer(first, last, "%s %hhu.%hhu.%hhu.%hhu",
clientInfo.short_description(),
clientInfo.version()[0], clientInfo.version()[1],
clientInfo.version()[2], clientInfo.version()[3]);
}
char*
print_status_info(char* first, char* last) {
if (torrent::up_throttle() == 0)