Changeset 1771


Ignore:
Timestamp:
Apr 21, 2007, 1:48:05 PM (15 years ago)
Author:
livings124
Message:

simplify ratio calculation a little

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r1769 r1771  
    466466    else
    467467    {
    468         s->ratio = (float)s->uploaded / MAX((float)s->downloaded, (float)inf->totalSize * s->progress);
     468        s->ratio = (float)s->uploaded / (float)MAX(s->downloaded, inf->totalSize - s->left);
    469469    }
    470470   
Note: See TracChangeset for help on using the changeset viewer.