Fix download speed calculation

This commit is contained in:
Stone_Red
2023-12-14 14:16:21 +01:00
parent d383d4d15b
commit 93aef05f3b
@@ -187,8 +187,8 @@ public class DownloadCommands
if (stopWatch.Elapsed.TotalSeconds >= 1)
{
transferRate = bytesPerSecond;
bytesPerSecond = 0;
host.DownloadSpeed = (host.DownloadSpeed + bytesPerSecond) / 2;
bytesPerSecond = 0;
stopWatch.Restart();
}