Changeset 1255


Ignore:
Timestamp:
Dec 18, 2006, 6:16:27 AM (15 years ago)
Author:
livings124
Message:

stop crashing

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peerutils.h

    r920 r1255  
    4040    peer->keepAlive   = peer->date;
    4141    peer->download    = tr_rcInit();
     42    peer->upload      = tr_rcInit();
    4243
    4344    return peer;
  • trunk/libtransmission/transmission.c

    r1254 r1255  
    592592            if( ( peers[i].isDownloading = tr_peerIsDownloading( peer ) ) )
    593593            {
    594                 peers[i].downloadRate  = tr_peerDownloadRate( peer );
     594                peers[i].uploadToRate = tr_peerUploadRate( peer );
    595595            }
    596596            if( ( peers[i].isUploading = tr_peerIsUploading( peer ) ) )
    597597            {
    598                 peers[i].uploadRate  = tr_peerUploadRate( peer );
     598                peers[i].downloadFromRate = tr_peerDownloadRate( peer );
    599599            }
    600600        }
  • trunk/libtransmission/transmission.h

    r1252 r1255  
    399399    int     isDownloading;
    400400    int     isUploading;
    401     float   downloadRate;
    402     float   uploadRate;
     401    float   downloadFromRate;
     402    float   uploadToRate;
    403403};
    404404
Note: See TracChangeset for help on using the changeset viewer.