mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-04 00:56:09 +02:00
Fix download speed calculation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user