From f704b9b0617e2257544d983e3b9f5dbffa87ba03 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Wed, 15 Jun 2022 17:10:16 +0200 Subject: data: parse-partition-tables: fix bad sizes Without that fix, MiB became GiB when using the following command: ./parse_partition_tables.py redmine /path/to/file.pit Signed-off-by: Denis 'GNUtoo' Carikli --- data/parse-partition-tables/parse_partition_tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/parse-partition-tables/parse_partition_tables.py b/data/parse-partition-tables/parse_partition_tables.py index 784cfc5..3781562 100755 --- a/data/parse-partition-tables/parse_partition_tables.py +++ b/data/parse-partition-tables/parse_partition_tables.py @@ -29,7 +29,8 @@ def usage(progname): def get_human_size(size): size_names = { - 1024*1024 : 'GiB', + 1024*1024*1024 : 'GiB', + 1024*1024 : 'MiB', 1024 : 'KiB', } -- cgit v1.2.3