From 6ac01ed278f14bac76e9f31164a846cbdeb73dcf Mon Sep 17 00:00:00 2001 From: AndreyKoltsov1997 Date: Wed, 15 Mar 2023 11:41:08 +0100 Subject: [PATCH] Handle declaration issue related to excplicit download percentage progress tracking. --- context/scripts/Web.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/context/scripts/Web.cs b/context/scripts/Web.cs index 00b3faf1b..dd88ec3e5 100644 --- a/context/scripts/Web.cs +++ b/context/scripts/Web.cs @@ -200,6 +200,7 @@ private static async Task DownloadFile(string name, string sourceUrl, stri { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); + long lastPercent = -1; client.DownloadProgressChanged += (sender, args) => { long percent = 100 * args.BytesReceived / args.TotalBytesToReceive;