From 998d4c514b57558a993573d78667a126d593bf27 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 27 Nov 2021 23:08:56 -0600 Subject: [PATCH] fixup! refactor: make parts of tr file private (#2241) --- libtransmission/rpcimpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/rpcimpl.cc b/libtransmission/rpcimpl.cc index d4a374cc3..94a54b7dd 100644 --- a/libtransmission/rpcimpl.cc +++ b/libtransmission/rpcimpl.cc @@ -386,7 +386,7 @@ static void addFileStats(tr_torrent const* tor, tr_variant* list) { auto const file = tr_torrentFile(tor, i); tr_variant* d = tr_variantListAddDict(list, 3); - tr_variantDictAddInt(d, TR_KEY_bytesCompleted, file.length); + tr_variantDictAddInt(d, TR_KEY_bytesCompleted, file.have); tr_variantDictAddInt(d, TR_KEY_priority, file.priority); tr_variantDictAddBool(d, TR_KEY_wanted, file.wanted); }