Skip to content

Commit

Permalink
MB is Power of 1024, MiB is power of 1000, saying MB when only accept…
Browse files Browse the repository at this point in the history
…ing MiB is wrong.
  • Loading branch information
Martin Barker authored and julianxhokaxhiu committed Mar 2, 2022
1 parent d0b63d7 commit 4b42728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SeventhHeavenUI/ViewModels/CatalogViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ private void WebRequest_DownloadProgressChanged(object sender, ProgressChangedEv
return;
}

if (item.Category == DownloadCategory.Image && download.ContentLength > 3 * 1000000)
if (item.Category == DownloadCategory.Image && download.ContentLength > (3 * 1024*1024))
{
Logger.Warn("preview image greater than 3MB, cancelling download");
item.PerformCancel?.Invoke();
Expand Down

0 comments on commit 4b42728

Please sign in to comment.