fix availability not showing 100% in gtk details view (#1181)

#1180

Co-authored-by: Charles Kerr <ckerr@github.com>
This commit is contained in:
andreaskern 2020-04-26 07:07:40 +02:00 committed by GitHub
parent 7b53f4238d
commit def7634f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -948,7 +948,7 @@ static void refreshInfo(struct DetailsImpl* di, tr_torrent** torrents, int n)
haveValid += st->haveValid;
sizeWhenDone += st->sizeWhenDone;
leftUntilDone += st->leftUntilDone;
available += st->sizeWhenDone - st->leftUntilDone + st->desiredAvailable;
available += st->sizeWhenDone - st->leftUntilDone + st->haveUnchecked + st->desiredAvailable;
}
{