Skip to content

Commit 9c9bff1

Browse files
author
Shoshana Berleant
committed
Revert "maybe"
This reverts commit ccc5ef3.
1 parent a04d1bc commit 9c9bff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,10 +1366,10 @@ def _get_ram_mb(pid, pyfunc=False):
13661366
mem_mb = parent_mem/_MB
13671367

13681368
# Iterate through child processes
1369-
for child in parent.children(recursive=False):
1369+
for child in parent.children(recursive=True):
13701370
child_mem = child.memory_info().rss
13711371
if pyfunc:
1372-
child_mem -= parent_mem # does not handle indirect children properly
1372+
child_mem -= parent_mem
13731373
mem_mb += child_mem/_MB
13741374

13751375
# Catch if process dies, return gracefully

0 commit comments

Comments
 (0)