Merge pull request #1215 from antmicro/run_fuzzer_units_fix

fuzzers: Add support for KiB, MiB and GiB units
This commit is contained in:
Tomasz Michalak 2020-01-30 08:27:13 +01:00 committed by GitHub
commit bdb876caec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -287,6 +287,9 @@ def mem_convert(s):
62.0
"""
units = {
'Gi': pow(2, 30),
'Mi': pow(2, 20),
'Ki': pow(2, 10),
'G': 1e9,
'M': 1e6,
'K': 1e3,