Changeset 11009


Ignore:
Timestamp:
Jul 14, 2010, 1:29:20 AM (12 years ago)
Author:
charles
Message:

(trunk daemon) #3424 "transmission-remote does not print active peers" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r10967 r11009  
    12201220        double progress;
    12211221        const char * address, * client, * flagstr;
    1222         int64_t rateToClient, rateToPeer;
     1222        double rateToClient, rateToPeer;
    12231223        tr_benc * d = tr_bencListChild( peers, i );
    12241224
     
    12271227          && tr_bencDictFindReal( d, "progress", &progress )
    12281228          && tr_bencDictFindStr( d, "flagStr", &flagstr )
    1229           && tr_bencDictFindInt( d, "rateToClient", &rateToClient )
    1230           && tr_bencDictFindInt( d, "rateToPeer", &rateToPeer ) )
     1229          && tr_bencDictFindReal( d, "rateToClient", &rateToClient )
     1230          && tr_bencDictFindReal( d, "rateToPeer", &rateToPeer ) )
    12311231        {
    12321232            printf( "%-20s  %-12s  %-5.1f %6.1f  %6.1f  %s\n",
    12331233                    address, flagstr, (progress*100.0),
    1234                     (double)rateToClient,
    1235                     (double)rateToPeer,
     1234                    rateToClient,
     1235                    rateToPeer,
    12361236                    client );
    12371237        }
Note: See TracChangeset for help on using the changeset viewer.