refactor ♻️: Refactor memory calculation logic #35
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removed unused variable and updated memory calculation to use ansible_memtotal_mb for more accurate results.
Review Summary
log2ram_host_memtotal_mbconfiguration. This change may increase the system's flexibility, but it could potentially lead to excessive RAM usage if not properly managed. It is recommended to set an appropriate default value or use a dynamic calculation based on available system resources.ansible_memtotal_mbinstead oflog2ram_host_memtotal_mb. This could potentially lead to incorrect calculations if the host and the fact variables differ.@@ -38,4 +38,3 @@log2ram_min_size_mb: 128log2ram_max_size_mb: 1024log2ram_host_memtotal_mb: "{{ host_memtotal_mb | default(4086) }}"[Score: 3] Removing hardcoded memory limit for log2ram_host_memtotal_mb could potentially lead to excessive RAM usage if not properly managed. It is recommended to set an appropriate default value or use a dynamic calculation based on available system resources.