Update partitioning.py
This commit is contained in:
@@ -43,7 +43,6 @@ CSS = """
|
||||
|
||||
|
||||
def get_total_memory() -> int:
|
||||
"""Returns total system memory in bytes."""
|
||||
try:
|
||||
return os.sysconf("SC_PAGE_SIZE") * os.sysconf("SC_PHYS_PAGES")
|
||||
except (ValueError, OSError):
|
||||
@@ -54,7 +53,8 @@ def get_total_memory() -> int:
|
||||
return int(parts[1]) * 1024
|
||||
return 0
|
||||
|
||||
def calculate_auto_partitions(disk_device):
|
||||
|
||||
def calculate_auto_partitions(disk_device):
|
||||
disk_size = 0
|
||||
try:
|
||||
# Get disk size in bytes
|
||||
|
||||
Reference in New Issue
Block a user