X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_MemoryLimit.cxx;h=196eb1edc6795c11b13111e3b3faaf066d5c735c;hb=7e714e8fc0d0884011007c9daed6e6e492402693;hp=f513d82a05a8df57c69af379e7ea755d1fc82a25;hpb=8d297d6698f361d4f2dde723050bcfbaea050920;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_MemoryLimit.cxx b/src/SMDS/SMDS_MemoryLimit.cxx index f513d82a0..196eb1edc 100644 --- a/src/SMDS/SMDS_MemoryLimit.cxx +++ b/src/SMDS/SMDS_MemoryLimit.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -29,11 +29,9 @@ #include #endif -#ifdef _DEBUG_ #include -#endif -int main (int argc, char ** argv) +int main () { // To better understand what is going on here, consult bug [SALOME platform 0019911] #if !defined WIN32 && !defined __APPLE__ @@ -59,9 +57,9 @@ int main (int argc, char ** argv) } } catch (...) {} -// #ifdef _DEBUG_ -// std::cout << freeRamKb / 1024 << std::endl; -// #endif +// if (SALOME::VerbosityActivated()) +// std::cout << freeRamKb / 1024 << std::endl; + return freeRamKb / 1024; #endif