Skip to content
Snippets Groups Projects
Commit 0c4db102 authored by David Bigagli's avatar David Bigagli
Browse files

Fix the test if core limit (ulimit -c) is 1.

parent 6cd208e0
No related branches found
No related tags found
No related merge requests found
...@@ -94,29 +94,7 @@ expect { ...@@ -94,29 +94,7 @@ expect {
exp_continue exp_continue
} }
} }
if {$cur_core != -1} {
if {$cur_core == 0} {
set limit_core 0
} else {
set limit_core [expr ($cur_core / 1024) - 2]
}
}
if {$cur_fsize != -1} {
if {$cur_fsize == 0} {
set limit_fsize 0
} else {
set limit_fsize [expr ($cur_fsize / 1024) - 2]
}
}
if {$cur_nofile != -1} {
set limit_nofile [expr $cur_nofile - 2]
}
if {$cur_nproc != -1} {
set limit_nproc [expr $cur_nproc - 200]
}
if {$cur_stack != -1} {
set limit_stack [expr ($cur_stack / 1024) - 2]
}
# #
# Spawn a job via sbatch to print environment variables and user limits # Spawn a job via sbatch to print environment variables and user limits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment