From f5f28ae9e8b301d8264b4f9f9ddb37ffe44713ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Madon?= <mael.madon@irit.fr> Date: Wed, 10 May 2023 17:13:21 +0200 Subject: [PATCH] harmonize job validity condition between swf_filter and swf_split_by_user --- batmenTools/swf_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batmenTools/swf_filter.py b/batmenTools/swf_filter.py index 3ee2339..076c40a 100755 --- a/batmenTools/swf_filter.py +++ b/batmenTools/swf_filter.py @@ -51,8 +51,8 @@ def filter_workload(input_swf:str, output_swf:str=None, partition_id = int(res.group(SwfField.PARTITION_ID.value)) # Select jobs to keep - is_valid_job = (nb_res > 0 and walltime > - run_time and run_time > 0 and submit_time >= 0) + is_valid_job = (nb_res > 0 and walltime >= + run_time and run_time >= 0 and submit_time >= 0) select_partition = ((partitions_to_select is None) or (partition_id in partitions_to_select)) use_job = select_partition and ( -- GitLab