From: Andreas Sandberg Date: Tue, 19 Jan 2021 16:05:08 +0000 (+0000) Subject: python: Fix incorrect prefixes is m5.utils.convert X-Git-Tag: develop-gem5-snapshot~267 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b67b917345e85d6c02aa8c37dc40524eac5622c6;p=gem5.git python: Fix incorrect prefixes is m5.utils.convert The conversion functions incorrectly assumed that kibibytes are 'kiB' rather than 'KiB' (correct). Change-Id: I7ef9e54546fdb3379435b40af6d9f619ad9b37a5 Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39375 Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/python/m5/util/convert.py b/src/python/m5/util/convert.py index d3088f603..73335e62b 100644 --- a/src/python/m5/util/convert.py +++ b/src/python/m5/util/convert.py @@ -62,7 +62,7 @@ metric_prefixes = { 'Gi': gibi, 'G': giga, 'M': mega, - 'ki': kibi, + 'Ki': kibi, 'k': kilo, 'Mi': mebi, 'm': milli, @@ -84,7 +84,7 @@ binary_prefixes = { 'G' : gibi, 'Mi': mebi, 'M' : mebi, - 'ki': kibi, + 'Ki': kibi, 'k' : kibi, }