From b67b917345e85d6c02aa8c37dc40524eac5622c6 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 19 Jan 2021 16:05:08 +0000 Subject: [PATCH] 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 --- src/python/m5/util/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, } -- 2.30.2