diff --git a/src/Hik.Client/Service/VideoDownloaderService.cs b/src/Hik.Client/Service/VideoDownloaderService.cs index 3702c50..fa2f3ac 100644 --- a/src/Hik.Client/Service/VideoDownloaderService.cs +++ b/src/Hik.Client/Service/VideoDownloaderService.cs @@ -57,7 +57,7 @@ private async Task DownloadRemoteVideoFileAsync(MediaFileDto file, Cancell file.DownloadDuration = duration; int? videoDuration = file.Duration; - logger.Information($"{file.ToVideoUserFriendlyString()} - downloaded in {duration.FormatSeconds()}, avg speed {((long)Utils.SafeDivision(file.Size, duration.Value)).FormatBytes()}/s, avg rate {((long)Utils.SafeDivision(file.Size, videoDuration.Value)).FormatBytes()}/s"); + logger.Information($"{file.ToVideoUserFriendlyString()} - downloaded in {duration.FormatMilliseconds()}, avg speed {((long)Utils.SafeDivision(file.Size, duration.Value / 1000)).FormatBytes()}/s, avg rate {((long)Utils.SafeDivision(file.Size, videoDuration.Value)).FormatBytes()}/s"); } return downloaded;