Skip to content

Commit

Permalink
should be >=
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored May 25, 2020
1 parent 8ff33e6 commit 0888c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/dispatcher/Slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _check_sub_limit(self, task_max, **kwarg) :
username = getpass.getuser()
stdin, stdout, stderr = self.context.block_checkcall('squeue -u %s -h' % username)
nj = len(stdout.readlines())
return nj > task_max
return nj >= task_max

def _make_squeue(self,mdata1, res):
ret = ''
Expand Down

0 comments on commit 0888c42

Please sign in to comment.