]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
BUG in memory assignement, parameter is in megabytes and not in kilobytes
authorribes <ribes>
Tue, 25 May 2010 11:41:08 +0000 (11:41 +0000)
committerribes <ribes>
Tue, 25 May 2010 11:41:08 +0000 (11:41 +0000)
src/Local/Batch_BatchManager_Local.cxx

index ec873cddfd4491c8e8a8bf7f827c189166ab1db9..f4d74a8ba1505704d8f7958453d9ae87683701ad 100644 (file)
@@ -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);
       }