Changeset 1657


Ignore:
Timestamp:
Apr 4, 2007, 1:05:04 AM (15 years ago)
Author:
livings124
Message:

get valid downloaded number from new left variable

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1649 r1657  
    332332        return;
    333333   
    334     float downloadedValid = 0;
    335     uint64_t downloadedTotal = 0, uploadedTotal = 0;
     334    uint64_t  downloadedValid = 0, downloadedTotal = 0, uploadedTotal = 0;
    336335    Torrent * torrent;
    337336    NSEnumerator * enumerator = [fTorrents objectEnumerator];
  • trunk/macosx/Torrent.h

    r1645 r1657  
    177177- (float)       downloadRate;
    178178- (float)       uploadRate;
    179 - (float)       downloadedValid;
     179- (uint64_t)       downloadedValid;
    180180- (uint64_t)    downloadedTotal;
    181181- (uint64_t)    uploadedTotal;
  • trunk/macosx/Torrent.m

    r1645 r1657  
    10821082}
    10831083
    1084 - (float) downloadedValid
    1085 {
    1086     return [self progress] * [self size];
     1084- (uint64_t) downloadedValid
     1085{
     1086    return fInfo->totalSize - fStat->left;
    10871087}
    10881088
Note: See TracChangeset for help on using the changeset viewer.