From: ribes Date: Tue, 25 May 2010 11:41:08 +0000 (+0000) Subject: BUG in memory assignement, parameter is in megabytes and not in kilobytes X-Git-Tag: V1_1_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df6b4290921f62a4d150dfc54a8360c11044ad18;p=tools%2Flibbatch.git BUG in memory assignement, parameter is in megabytes and not in kilobytes --- 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); }