From 226d6202dcfd10fb7e282148211dc07d913f325b Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 15 Jan 2007 08:19:20 +0000 Subject: [PATCH] PAL14478 (GHS3D memory) allow GHS3D to use a half of available memory --- src/GHS3DPlugin_GHS3D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2