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 );