Skip to content

Commit

Permalink
Fix buffer size estimation in ShellcmdLrms
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Aug 14, 2017
1 parent 48a9c97 commit ef9d3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc3libs/backends/transport.py
Expand Up @@ -492,7 +492,7 @@ def _estimate_safe_buffer_size():
used and why it is needed.
"""
avail_mem = gc3libs.utils.get_max_real_memory()
if avail_mem is None:
if avail_mem is not None:
# be sure to use no more than 50% of avail mem
# if we cannot determine number of processors
nproc = gc3libs.utils.get_num_processors() or 2
Expand Down

0 comments on commit ef9d3bb

Please sign in to comment.