Skip to content

Commit

Permalink
style: update macos warning message and add message for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyb824 committed Apr 29, 2024
1 parent a111ad2 commit 5e24a65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ def get_memory_info_macos() -> (
swap_used_percentage,
)


def show_warning_msg() -> Optional[str]:
"""
Print the macOS warning message
"""
if platform.system() == "Darwin":
return "\033[1mWARNING\033[0m: memory usage of all processes used to calculate free memory on macOS"

return "\033[1mWARNING\033[0m: memory usage of all processes used to calculate free memory"
return "\033[1mWARNING\033[0m: memory usage derived from '/proc/meminfo'"


def print_memory_info() -> None:
Expand Down

0 comments on commit 5e24a65

Please sign in to comment.