From def7634f18a5e7617d14b0e570ed4c46d8721769 Mon Sep 17 00:00:00 2001 From: andreaskern Date: Sun, 26 Apr 2020 07:07:40 +0200 Subject: [PATCH] fix availability not showing 100% in gtk details view (#1181) #1180 Co-authored-by: Charles Kerr --- gtk/details.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/details.c b/gtk/details.c index 6a986ec2a..b305dda24 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -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; } {