Skip to content

Commit

Permalink
Refactor memory usage limit and improve code formatting in core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Jan 1, 2025
1 parent 6570c34 commit 8659ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# ----------------------------------------------------------------------------------


def memory_usage_by_module(limit=20):
def memory_usage_by_module(limit=10):
"""
Returns a list of (filename, size_in_bytes) for the top
`limit` files by allocated memory, using tracemalloc.
Expand Down Expand Up @@ -267,7 +267,7 @@ def check_status(request):
# Memory usage by module (via tracemalloc)
# -------------------------------------------------------
print("Calculating memory usage by module...")
top_modules = memory_usage_by_module(limit=20)
top_modules = memory_usage_by_module(limit=10)
status_data["memory_by_module"] = top_modules

# -------------------------------------------------------
Expand Down

0 comments on commit 8659ce0

Please sign in to comment.