diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-06-15 17:10:16 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-06-15 17:11:07 +0200 |
commit | f704b9b0617e2257544d983e3b9f5dbffa87ba03 (patch) | |
tree | 172b009be79d461d517fd95e1108d382ace7fae9 | |
parent | 9da920b9c8464ca953aed1de2cbf838acfbb0825 (diff) | |
download | vendor_replicant-scripts-f704b9b0617e2257544d983e3b9f5dbffa87ba03.tar.gz vendor_replicant-scripts-f704b9b0617e2257544d983e3b9f5dbffa87ba03.tar.bz2 vendor_replicant-scripts-f704b9b0617e2257544d983e3b9f5dbffa87ba03.zip |
data: parse-partition-tables: fix bad sizesreplicant-11-nlnet-eu-grant-825310-replicant-update
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 <GNUtoo@cyberdimension.org>
-rwxr-xr-x | data/parse-partition-tables/parse_partition_tables.py | 3 |
1 files changed, 2 insertions, 1 deletions
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', } |