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

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

File:
1 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            {
Note: See TracChangeset for help on using the changeset viewer.