mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-08 15:56:23 +02:00
Fix download speed calculation
This commit is contained in:
@@ -187,8 +187,8 @@ public class DownloadCommands
|
|||||||
if (stopWatch.Elapsed.TotalSeconds >= 1)
|
if (stopWatch.Elapsed.TotalSeconds >= 1)
|
||||||
{
|
{
|
||||||
transferRate = bytesPerSecond;
|
transferRate = bytesPerSecond;
|
||||||
bytesPerSecond = 0;
|
|
||||||
host.DownloadSpeed = (host.DownloadSpeed + bytesPerSecond) / 2;
|
host.DownloadSpeed = (host.DownloadSpeed + bytesPerSecond) / 2;
|
||||||
|
bytesPerSecond = 0;
|
||||||
stopWatch.Restart();
|
stopWatch.Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user