From: eap Date: Mon, 15 Jan 2007 08:19:20 +0000 (+0000) Subject: PAL14478 (GHS3D memory) X-Git-Tag: V3_2_5~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=226d6202dcfd10fb7e282148211dc07d913f325b;p=plugins%2Fhybridplugin.git PAL14478 (GHS3D memory) allow GHS3D to use a half of available memory --- diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index cf89cf8..de26cc2 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -482,7 +482,7 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, int err = sysinfo( &si ); if ( err == 0 ) { memory = "-m "; - memory += int ( 0.8 * ( si.freeram + si.freeswap ) * si.mem_unit / 1024 / 1024 ); + memory += int ( 0.5 * ( si.freeram + si.freeswap ) * si.mem_unit / 1024 / 1024 ); } #endif