mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[downloader] Fix formatting of required cache size
Scientific notation is cool and all but not particularly useful to most people.
This commit is contained in:
parent
c345662521
commit
3f27ea0296
|
@ -439,7 +439,7 @@ class DLManager(Process):
|
||||||
# Todo implement on-disk caching to avoid this issue.
|
# Todo implement on-disk caching to avoid this issue.
|
||||||
if analysis_res.min_memory > self.max_shared_memory:
|
if analysis_res.min_memory > self.max_shared_memory:
|
||||||
shared_mib = f'{self.max_shared_memory / 1024 / 1024:.01f} MiB'
|
shared_mib = f'{self.max_shared_memory / 1024 / 1024:.01f} MiB'
|
||||||
required_mib = f'{analysis_res.min_memory / 1024 / 1024:.01} MiB'
|
required_mib = f'{analysis_res.min_memory / 1024 / 1024:.01f} MiB'
|
||||||
raise MemoryError(f'Current shared memory cache is smaller than required! {shared_mib} < {required_mib}')
|
raise MemoryError(f'Current shared memory cache is smaller than required! {shared_mib} < {required_mib}')
|
||||||
|
|
||||||
# calculate actual dl and patch write size.
|
# calculate actual dl and patch write size.
|
||||||
|
|
Loading…
Reference in a new issue