From df6b4290921f62a4d150dfc54a8360c11044ad18 Mon Sep 17 00:00:00 2001 From: ribes Date: Tue, 25 May 2010 11:41:08 +0000 Subject: [PATCH] BUG in memory assignement, parameter is in megabytes and not in kilobytes --- src/Local/Batch_BatchManager_Local.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Local/Batch_BatchManager_Local.cxx b/src/Local/Batch_BatchManager_Local.cxx index ec873cd..f4d74a8 100644 --- a/src/Local/Batch_BatchManager_Local.cxx +++ b/src/Local/Batch_BatchManager_Local.cxx @@ -774,8 +774,8 @@ namespace Batch { if (param.find(MAXRAMSIZE) != param.end()) { int maxramsize = param[MAXRAMSIZE]; struct rlimit limit; - limit.rlim_cur = maxramsize * 1024; - limit.rlim_max = int(maxramsize * 1.1) * 1024; + limit.rlim_cur = maxramsize * 1024 * 1024; + limit.rlim_max = int(maxramsize * 1.1) * 1024 * 1024; setrlimit(RLIMIT_AS, &limit); } -- 2.30.2