Skip to content

Commit

Permalink
fix unit mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 23, 2024
1 parent bd031fe commit 7e1e8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psiflow/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def command(self):
launch_command = "timeout -s 9 {}s {}".format(max_time, launch_command)
if self.memory_limit is not None:
# based on https://stackoverflow.com/a/42865957/2002471
units = {"B": 1, "KB": 2**10, "MB": 2**20, "GB": 2**30, "TB": 2**40}
units = {"KB": 1, "MB": 2**10, "GB": 2**20, "TB": 2**30}

def parse_size(size):
size = size.upper()
Expand Down

0 comments on commit 7e1e8d9

Please sign in to comment.