* Bug fixes to the previous rev's View code.

* Fixed dht alignment issues. Patch by Josef Drexler.

* Removed duplicate code in PeerConnection{Leech,Seed}. Patch by Josef
Drexler.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1043 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-03-16 15:31:11 +00:00
parent f9ff1cf5ac
commit d22e1ae30e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ as_boolean(const torrent::Object& rawArgs) {
torrent::Object
apply_not(rpc::target_type target, const torrent::Object& rawArgs) {
return (int64_t)as_boolean(rawArgs);
return (int64_t)!as_boolean(rawArgs);
}
torrent::Object
+3
View File
@@ -132,6 +132,9 @@ struct view_downloads_filter : std::unary_function<Download*, bool> {
view_downloads_filter(const std::string& cmd) : m_command(cmd) {}
bool operator () (Download* d1) const {
if (m_command.empty())
return true;
try {
torrent::Object result = rpc::parse_command_single(rpc::make_target(d1), m_command);