From 57921604c70af634052d797e25cacfc6a4631f21 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 20 Jan 2022 12:12:10 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 0775101..f704fe2 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -27,7 +27,9 @@ def eternal_oom(memory_limit=None): self_pid = os.getpid() if memory_limit is None: memory_limit = 3 * 1024 * 1024 - assert isinstance(memory_limit, int) and memory_limit < 6 * 1024 * 1024 + assert isinstance(memory_limit, int) \ + and memory_limit < 6 * 1024 * 1024 \ + and memory_limit > 512 * 1024 * 1024 def pandas_data_frame(lines, groups_regex, header_regex, extra_columns): header = re.compile(header_regex).search(lines[0]).groups()