From 79154bac8a9569e71b51c23bef0fec2ebd5bce6f Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 3 Dec 2009 12:40:23 +0000 Subject: [PATCH] (trunk) #2096 "magnet links" -- fix RPC typo introduced in r9655 and reported by KyleK --- doc/rpc-spec.txt | 4 ++-- libtransmission/rpcimpl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/rpc-spec.txt b/doc/rpc-spec.txt index 3a769f7f9..35059edd8 100644 --- a/doc/rpc-spec.txt +++ b/doc/rpc-spec.txt @@ -157,7 +157,7 @@ leftUntilDone | number | tr_stat manualAnnounceTime | number | tr_stat maxConnectedPeers | number | tr_torrent - metadataPecentComplete | double | tr_stat + metadataPercentComplete | double | tr_stat name | string | tr_info peer-limit | number | tr_torrent peers | array (see below) | n/a @@ -562,7 +562,7 @@ | | NO | torrent-get | removed arg "seeders" | | NO | torrent-get | removed arg "timesCompleted" | | NO | torrent-get | removed arg "swarmSpeed" - | | yes | torrent-get | new arg "metadataPecentComplete" + | | yes | torrent-get | new arg "metadataPercentComplete" | | yes | torrent-get | new arg "trackerStats" | | yes | session-set | new arg "incomplete-dir" | | yes | session-set | new arg "incomplete-dir-enabled" diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index 34123e93e..ed0d81fc4 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -500,7 +500,7 @@ addField( const tr_torrent * tor, tr_benc * d, const char * key ) tr_bencDictAddInt( d, key, st->manualAnnounceTime ); else if( tr_streq( key, keylen, "maxConnectedPeers" ) ) tr_bencDictAddInt( d, key, tr_torrentGetPeerLimit( tor ) ); - else if( tr_streq( key, keylen, "metadataPecentComplete" ) ) + else if( tr_streq( key, keylen, "metadataPercentComplete" ) ) tr_bencDictAddReal( d, key, st->metadataPercentComplete ); else if( tr_streq( key, keylen, "name" ) ) tr_bencDictAddStr( d, key, inf->name );