Ignore:
Timestamp:
Feb 17, 2009, 4:00:53 AM (13 years ago)
Author:
livings124
Message:

assorted trivial cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r7892 r7894  
    993993            /* if we're seeding and we've reached our seed ratio limit, stop the torrent */
    994994            if( tr_torrentIsSeed( tor ) && tr_torrentGetSeedRatio( tor, &seedRatio ) ) {
    995                 double up = (double)tor->uploadedCur + (double)tor->uploadedPrev;
    996                 double down = (double)tor->downloadedCur + (double)tor->downloadedPrev;
    997                 double ratio = tr_getRatio( up, down );
     995                const double up = tor->uploadedCur + tor->uploadedPrev;
     996                const double down = tor->downloadedCur + tor->downloadedPrev;
     997                const double ratio = tr_getRatio( up, down );
    998998                if( ratio >= seedRatio ) {
    999999                    tr_torrentStop( tor );
Note: See TracChangeset for help on using the changeset viewer.