tests, configs, util, mem, python, systemc: Change base 10 units to base 2 (#1605)
This commit changes metric units (e.g. kB, MB, and GB) to binary units (KiB, MiB, GiB) in various files. This PR covers files that were missed by a previous PR that also made these changes.
This commit is contained in:
committed by
GitHub
parent
d57208c615
commit
c10feed524
@@ -136,9 +136,9 @@ def main():
|
||||
xticks_labels = []
|
||||
for x in xticks_locations:
|
||||
if x < 1024:
|
||||
xticks_labels.append("%d kB" % x)
|
||||
xticks_labels.append("%d KiB" % x)
|
||||
else:
|
||||
xticks_labels.append("%d MB" % (x / 1024))
|
||||
xticks_labels.append("%d MiB" % (x / 1024))
|
||||
plt.xticks(xticks_locations, xticks_labels, rotation=-45)
|
||||
|
||||
plt.minorticks_off()
|
||||
|
||||
Reference in New Issue
Block a user