added total stats to client_test

This commit is contained in:
Arvid Norberg 2008-01-06 20:16:46 +00:00
parent b37f011626
commit 4d8833bc35
1 changed files with 5 additions and 0 deletions

View File

@ -1171,6 +1171,11 @@ int main(int ac, char* av[])
}
out << "conns: " << sess_stat.num_peers << " down: " << esc("32") << add_suffix(sess_stat.download_rate) << "/s" << esc("0")
<< " (" << esc("32") << add_suffix(sess_stat.total_download) << esc("0") << ") "
" up: " << esc("31") << add_suffix(sess_stat.upload_rate) << "/s " << esc("0")
<< " (" << esc("31") << add_suffix(sess_stat.total_upload) << esc("0") << ")" << std::endl;
if (print_log)
{
for (std::deque<std::string>::iterator i = events.begin();