Skip to content

Commit 07461cf

Browse files
committed
Added a fix for the recursive symlink bug (was happening because while loop in memory_profiler was executing node twice when it didnt finish running the first time
1 parent c99f834 commit 07461cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run_node(node, updatehash, runtime_profile=False):
4343
start = datetime.datetime.now()
4444
mem_mb, retval = memory_profiler.memory_usage(proc=proc, retval=True,
4545
include_children=True,
46-
max_usage=True)
46+
max_usage=True, interval=.9e-6)
4747
run_secs = (datetime.datetime.now() - start).total_seconds()
4848
result['result'] = retval
4949
result['node_memory'] = mem_mb[0]/1024.0

0 commit comments

Comments
 (0)