Skip to content

Commit

Permalink
Handle declaration issue related to excplicit download percentage pro…
Browse files Browse the repository at this point in the history
…gress tracking.
  • Loading branch information
AndreyKoltsov1997 committed Mar 15, 2023
1 parent 561dc02 commit 6ac01ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions context/scripts/Web.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ private static async Task<bool> 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;
Expand Down

0 comments on commit 6ac01ed

Please sign in to comment.