mirror of
https://github.com/NohamR/N_m3u8DL-RE.git
synced 2025-05-25 06:41:57 +00:00
优化下载速度计算
This commit is contained in:
parent
4579334a3f
commit
242fe1b180
@ -39,7 +39,7 @@ namespace N_m3u8DL_RE.Column
|
|||||||
task.Value = speedContainer.RDownloaded;
|
task.Value = speedContainer.RDownloaded;
|
||||||
}
|
}
|
||||||
//一秒汇报一次即可
|
//一秒汇报一次即可
|
||||||
if (DateTimeStringDic.TryGetValue(taskId, out var oldTime) && oldTime != now)
|
if (DateTimeStringDic.TryGetValue(taskId, out var oldTime) && oldTime != now && !flag)
|
||||||
{
|
{
|
||||||
SpeedDic[taskId] = FormatFileSize(speedContainer.Downloaded);
|
SpeedDic[taskId] = FormatFileSize(speedContainer.Downloaded);
|
||||||
//速度为0,计数增加
|
//速度为0,计数增加
|
||||||
|
Loading…
x
Reference in New Issue
Block a user