1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-05 11:08:04 +00:00

get valid downloaded number from new left variable

This commit is contained in:
Mitchell Livingston 2007-04-04 01:05:04 +00:00
parent b86b3e8a30
commit 304d735e7d
3 changed files with 4 additions and 5 deletions

View file

@ -331,8 +331,7 @@
if (numberSelected == 0)
return;
float downloadedValid = 0;
uint64_t downloadedTotal = 0, uploadedTotal = 0;
uint64_t downloadedValid = 0, downloadedTotal = 0, uploadedTotal = 0;
Torrent * torrent;
NSEnumerator * enumerator = [fTorrents objectEnumerator];
while ((torrent = [enumerator nextObject]))

View file

@ -176,7 +176,7 @@
- (float) downloadRate;
- (float) uploadRate;
- (float) downloadedValid;
- (uint64_t) downloadedValid;
- (uint64_t) downloadedTotal;
- (uint64_t) uploadedTotal;
- (float) swarmSpeed;

View file

@ -1081,9 +1081,9 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
return fStat->rateUpload;
}
- (float) downloadedValid
- (uint64_t) downloadedValid
{
return [self progress] * [self size];
return fInfo->totalSize - fStat->left;
}
- (uint64_t) downloadedTotal