]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Changed memory unit for batch jobs to megabytes
authorbarate <barate>
Fri, 21 May 2010 08:40:26 +0000 (08:40 +0000)
committerbarate <barate>
Fri, 21 May 2010 08:40:26 +0000 (08:40 +0000)
src/Launcher/Launcher_Job.cxx

index b2c61375c98d22380b62b6be56e3631f312484f5..53b3c0e3308a36807fa2a1c8edb5d42e385bec11 100644 (file)
@@ -412,11 +412,10 @@ Launcher::Job::common_job_params()
   params[Batch::USER] = _resource_definition.UserName;
   params[Batch::NBPROC] = _resource_required_params.nb_proc;
 
-  // Memory
+  // Memory in megabytes
   if (_resource_required_params.mem_mb > 0)
   {
-    // Memory is in kilobytes
-    params[Batch::MAXRAMSIZE] = _resource_required_params.mem_mb * 1024;
+    params[Batch::MAXRAMSIZE] = _resource_required_params.mem_mb;
   }
 
   // We define a default directory based on user time