Changeset 1006 for trunk/libtransmission


Ignore:
Timestamp:
Oct 13, 2006, 6:58:12 PM (15 years ago)
Author:
livings124
Message:

in info show the number of incoming connections next to total connections

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r996 r1006  
    495495
    496496    s->peersTotal       = 0;
     497    s->peersIncoming    = 0;
    497498    s->peersUploading   = 0;
    498499    s->peersDownloading = 0;
     
    505506        {
    506507            (s->peersTotal)++;
     508           
     509            if( tr_peerIsIncoming( peer ) )
     510            {
     511                (s->peersIncoming)++;
     512            }
     513           
     514            if( tr_peerIsUploading( peer ) )
     515            {
     516                (s->peersUploading)++;
     517            }
     518           
    507519            if( tr_peerIsUploading( peer ) )
    508520            {
  • trunk/libtransmission/transmission.h

    r996 r1006  
    359359    int                 eta;
    360360    int                 peersTotal;
     361    int                 peersIncoming;
    361362    int                 peersUploading;
    362363    int                 peersDownloading;
Note: See TracChangeset for help on using the changeset viewer.