Skip to content

Commit

Permalink
Fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vov4uk committed Jun 3, 2024
1 parent 58272ec commit 6d60d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hik.Client/Service/VideoDownloaderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private async Task<bool> 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;
Expand Down

0 comments on commit 6d60d39

Please sign in to comment.