index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-23 11:37:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 11:37:51 +0000 |
commit | 6b6c9c84bed1e4640f5f46282da1767827f977a9 (patch) | |
tree | 9a6750bd296e18cb36189ea06808524c1619d4e8 /archinstall/lib/disk/helpers.py | |
parent | e15697119116487f84e72a22e99f8e46d714f21f (diff) |
-rw-r--r-- | archinstall/lib/disk/helpers.py | 4 |
diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index fea9ef65..46d86bd5 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -10,6 +10,10 @@ from ..general import SysCommand from ..output import log ROOT_DIR_PATTERN = re.compile('^.*?/devices') +GIGA = 2 ** 30 + +def convert_size_to_gb(size): + return round(size / GIGA,1) def sort_block_devices_based_on_performance(block_devices): result = {device: 0 for device in block_devices} |