Ignore:
Timestamp:
Jul 10, 2010, 9:30:37 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3388 "file completion percentage never updates" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10937 r10990  
    11841184        const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i );
    11851185        walk->bytesCompleted = b;
    1186         walk->progress = tor->info.files[i].length > 0 ? ( b / tor->info.files[i].length ) : 1.0;
     1186        walk->progress = tor->info.files[i].length > 0 ? ( (float)b / tor->info.files[i].length ) : 1.0f;
    11871187    }
    11881188
Note: See TracChangeset for help on using the changeset viewer.