mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
fix silly typo in last commit
This commit is contained in:
parent
3377bc4e02
commit
d965c1af92
1 changed files with 2 additions and 1 deletions
|
@ -156,6 +156,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
|
||||
if (fPreviousFinishedPieces != NULL)
|
||||
free(fPreviousFinishedPieces);
|
||||
[fFinishedPiecesDate release];
|
||||
|
||||
[fDownloadFolder release];
|
||||
[fIncompleteFolder release];
|
||||
|
@ -217,7 +218,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
|
||||
- (float *) getPreviousAmountFinished
|
||||
{
|
||||
if (fFinishedPiecesDate && [fFinishedPiecesDate timeIntervalSinceNow] < -1.0)
|
||||
if (fFinishedPiecesDate && [fFinishedPiecesDate timeIntervalSinceNow] > -2.0)
|
||||
return fPreviousFinishedPieces;
|
||||
else
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue