mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-05-16 06:52:35 +00:00
Fix wrong download speed format (Mb/s to MB/s)
This commit is contained in:
parent
c7687c80e8
commit
d2ec0aaa9c
2 changed files with 3 additions and 3 deletions
|
|
@ -262,7 +262,7 @@ public class HlsDownloader{
|
|||
File.WriteAllText($"{fn}.resume", resumeDataJson);
|
||||
|
||||
// Log progress
|
||||
Console.WriteLine($"{_data.Parts.Completed} of {totalSeg} parts downloaded [{dataLog.Percent}%] ({FormatTime(dataLog.Time)} | {dataLog.DownloadSpeed / 1000000.0:F2}Mb/s)");
|
||||
Console.WriteLine($"{_data.Parts.Completed} of {totalSeg} parts downloaded [{dataLog.Percent}%] ({FormatTime(dataLog.Time)} | {dataLog.DownloadSpeed / 1000000.0:F2}MB/s)");
|
||||
|
||||
_currentEpMeta.DownloadProgress = new DownloadProgress(){
|
||||
IsDownloading = true,
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ public partial class DownloadItemModel : INotifyPropertyChanged{
|
|||
Done = epMeta.DownloadProgress.Done;
|
||||
Percent = epMeta.DownloadProgress.Percent;
|
||||
Time = "Estimated Time: " + TimeSpan.FromSeconds(epMeta.DownloadProgress.Time).ToString(@"hh\:mm\:ss");
|
||||
DownloadSpeed = $"{epMeta.DownloadProgress.DownloadSpeed / 1000000.0:F2}Mb/s";
|
||||
DownloadSpeed = $"{epMeta.DownloadProgress.DownloadSpeed / 1000000.0:F2}MB/s";
|
||||
Paused = epMeta.Paused || !isDownloading && !epMeta.Paused;
|
||||
DoingWhat = epMeta.Paused ? "Paused" :
|
||||
Done ? (epMeta.DownloadProgress.Doing != string.Empty ? epMeta.DownloadProgress.Doing : "Done") :
|
||||
|
|
@ -192,7 +192,7 @@ public partial class DownloadItemModel : INotifyPropertyChanged{
|
|||
Done = epMeta.DownloadProgress.Done;
|
||||
Percent = epMeta.DownloadProgress.Percent;
|
||||
Time = "Estimated Time: " + TimeSpan.FromSeconds(epMeta.DownloadProgress.Time).ToString(@"hh\:mm\:ss");
|
||||
DownloadSpeed = $"{epMeta.DownloadProgress.DownloadSpeed / 1000000.0:F2}Mb/s";
|
||||
DownloadSpeed = $"{epMeta.DownloadProgress.DownloadSpeed / 1000000.0:F2}MB/s";
|
||||
|
||||
Paused = epMeta.Paused || !isDownloading && !epMeta.Paused;
|
||||
DoingWhat = epMeta.Paused ? "Paused" :
|
||||
|
|
|
|||
Loading…
Reference in a new issue