Format
Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
parent
d79a75d352
commit
ea54cd9c8c
1 changed files with 167 additions and 115 deletions
|
|
@ -27,5 +27,5 @@ def human_readable_to_byte(size: str) -> int:
|
|||
|
||||
scalar = float(results["scalar"])
|
||||
idx = possible_units.index(results["unit"].upper())
|
||||
factor = 1024 ** idx
|
||||
factor = 1024**idx
|
||||
return round(scalar * factor)
|
||||
|
|
|
|||
Loading…
Reference in a new issue