From d8fe593ef104af92de16322f5ec3dd2c225b6069 Mon Sep 17 00:00:00 2001 From: barate Date: Fri, 21 May 2010 08:40:26 +0000 Subject: [PATCH] Changed memory unit for batch jobs to megabytes --- src/Launcher/Launcher_Job.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.2