Changeset 9655


Ignore:
Timestamp:
Dec 2, 2009, 8:05:19 PM (12 years ago)
Author:
charles
Message:

(trunk) #2096 "Magnet Links - Extension for Peers to Send Metadata Files (BEP #9)" -- publish tr_stat.metadataPecentComplete in the RPC so that kjg can use it in the web client

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/rpc-spec.txt

    r9541 r9655  
    158158   manualAnnounceTime          | number                      | tr_stat
    159159   maxConnectedPeers           | number                      | tr_torrent
     160   metadataPecentComplete      | double                      | tr_stat
    160161   name                        | string                      | tr_info
    161162   peer-limit                  | number                      | tr_torrent
     
    562563         |         |        NO | torrent-get    | removed arg "timesCompleted"
    563564         |         |        NO | torrent-get    | removed arg "swarmSpeed"
     565         |         | yes       | torrent-get    | new arg "metadataPecentComplete"
    564566         |         | yes       | torrent-get    | new arg "trackerStats"
    565567         |         | yes       | session-set    | new arg "incomplete-dir"
  • trunk/libtransmission/rpcimpl.c

    r9593 r9655  
    501501    else if( tr_streq( key, keylen, "maxConnectedPeers" ) )
    502502        tr_bencDictAddInt( d, key,  tr_torrentGetPeerLimit( tor ) );
     503    else if( tr_streq( key, keylen, "metadataPecentComplete" ) )
     504        tr_bencDictAddReal( d, key, st->metadataPercentComplete );
    503505    else if( tr_streq( key, keylen, "name" ) )
    504506        tr_bencDictAddStr( d, key, inf->name );
Note: See TracChangeset for help on using the changeset viewer.