From 3c3a60d189981920f9b0837a4db24a3488ac9f53 Mon Sep 17 00:00:00 2001
From: Louis-Antoine <lamr@free.fr>
Date: Mon, 1 Jun 2020 10:37:05 +0200
Subject: [PATCH] Fix "downloads" command reporting incorrect progress

---
 src/d_netfil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/d_netfil.c b/src/d_netfil.c
index 560e4d334..7b99fddfb 100644
--- a/src/d_netfil.c
+++ b/src/d_netfil.c
@@ -1433,7 +1433,7 @@ void Command_Downloads_f(void)
 		&& transfer[node].txlist->ram == SF_FILE) // Node is downloading a file?
 		{
 			const char *name = transfer[node].txlist->id.filename;
-			UINT32 position = transfer[node].position;
+			UINT32 position = transfer[node].ackedsize;
 			UINT32 size = transfer[node].txlist->size;
 			char ratecolor;
 
-- 
GitLab