fix silly typo in last commit

This commit is contained in:
Mitchell Livingston 2007-12-28 21:40:51 +00:00
parent 3377bc4e02
commit d965c1af92
1 changed files with 2 additions and 1 deletions

View File

@ -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;