Added "-d" to change the default root dir.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@388 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-04-09 21:48:59 +00:00
parent 472c19fe67
commit f8bbf8bfad
7 changed files with 35 additions and 16 deletions
+6 -10
View File
@@ -35,25 +35,21 @@ namespace display {
std::string
print_download_status(core::Download* d) {
std::stringstream str;
if (d->get_download().is_hash_checking()) {
str << "Checking hash";
return "Checking hash";
} else if (d->get_download().is_tracker_busy()) {
str << "Tracker: Connecting";
return "Tracker: Connecting";
} else if (!d->get_download().is_active()) {
str << "Inactive";
return "Inactive";
} else if (!d->get_tracker_msg().empty()) {
str << "Tracker: [" << d->get_tracker_msg() << ']';
} else if (!d->get_message().empty()) {
return d->get_message();
} else {
//str << "---";
return "";
}
return str.str();
}
std::string