mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 17:28:13 +08:00
Replace black/isort with ruff (#188)
* Replace black/isort with ruff * fix typo
This commit is contained in:
@@ -397,9 +397,7 @@ def memory(run_once=False, workers=False, broker=None):
|
||||
2,
|
||||
)
|
||||
# memory available (MB)
|
||||
memory_available = round(
|
||||
psutil.virtual_memory().available / 1024**2, 2
|
||||
)
|
||||
memory_available = round(psutil.virtual_memory().available / 1024**2, 2)
|
||||
if memory_available_percentage < MEMORY_AVAILABLE_LOWEST_PERCENTAGE:
|
||||
MEMORY_AVAILABLE_LOWEST_PERCENTAGE = memory_available_percentage
|
||||
MEMORY_AVAILABLE_LOWEST_PERCENTAGE_AT = timezone.now()
|
||||
|
||||
Reference in New Issue
Block a user