From 3f27ea0296c9a3da3450ae8959357da444adc982 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 2 May 2020 21:22:15 +0200 Subject: [PATCH] [downloader] Fix formatting of required cache size Scientific notation is cool and all but not particularly useful to most people. --- legendary/downloader/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/downloader/manager.py b/legendary/downloader/manager.py index fd6fee7..460a981 100644 --- a/legendary/downloader/manager.py +++ b/legendary/downloader/manager.py @@ -439,7 +439,7 @@ class DLManager(Process): # Todo implement on-disk caching to avoid this issue. if analysis_res.min_memory > self.max_shared_memory: 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}') # calculate actual dl and patch write size.