From: barate Date: Fri, 21 May 2010 08:40:26 +0000 (+0000) Subject: Changed memory unit for batch jobs to megabytes X-Git-Tag: V5_1_4rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d8fe593ef104af92de16322f5ec3dd2c225b6069;p=modules%2Fkernel.git Changed memory unit for batch jobs to megabytes --- diff --git a/src/Launcher/Launcher_Job.cxx b/src/Launcher/Launcher_Job.cxx index b2c61375c..53b3c0e33 100644 --- a/src/Launcher/Launcher_Job.cxx +++ b/src/Launcher/Launcher_Job.cxx @@ -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