Changeset 6283


Ignore:
Timestamp:
Jul 2, 2008, 4:27:15 AM (13 years ago)
Author:
charles
Message:

(gtk) #1069: revert r6280

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r6280 r6283  
    457457{
    458458  int i;
    459   int seedCount = 0;
    460   int leechCount = 0;
    461459  int n_peers;
    462460  GtkTreeIter iter;
     
    493491  peers = tr_torrentPeers (tor, &n_peers);
    494492  qsort (peers, n_peers, sizeof(tr_peer_stat), compare_peers);
    495   for( i=0; i<n_peers; ++i ) {
    496     if( peers[i].progress >= 1.0 )
    497       ++seedCount;
    498     else
    499       ++leechCount;
    500   }
    501493
    502494  i = 0;
     
    534526#endif
    535527
    536   /* use the tracker-supplied information if it's available;
    537    * otherwise, use the counts of connected peers as a fallback */
    538   fmtpeercount (p->seeders_lb, stat->seeders >= 0 ? stat->seeders : seedCount );
    539   fmtpeercount (p->leechers_lb, stat->leechers >= 0 ? stat->leechers : leechCount );
     528  fmtpeercount (p->seeders_lb, stat->seeders );
     529  fmtpeercount (p->leechers_lb, stat->leechers );
    540530  fmtpeercount (p->completed_lb, stat->timesCompleted );
    541531
Note: See TracChangeset for help on using the changeset viewer.