X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkMemoryUsage.cxx;h=c95c2859b925e7f7dfa24575e4b53d28d88f53b6;hb=8b0f32e46083e5fbc2efe128c9eae002f129cbd8;hp=c0b78ce4ddee203a40a0e216a1ffca69d80d0af9;hpb=cff8cd85cd14a2e0fa2e80975a432fa8552e843c;p=clitk.git diff --git a/common/clitkMemoryUsage.cxx b/common/clitkMemoryUsage.cxx index c0b78ce..c95c285 100644 --- a/common/clitkMemoryUsage.cxx +++ b/common/clitkMemoryUsage.cxx @@ -19,7 +19,9 @@ // clitk include #include "clitkCommon.h" #include "clitkMemoryUsage.h" -#include +#ifndef _WIN32 +# include +#endif void clitk::PrintMemory(bool verbose, std::string s) { @@ -47,7 +49,7 @@ double clitk::GetMemoryUsageInMb() // Search the current pid in the list of processes while (stat[i].pid != getpid()) i++; // Display total memory size - double mem = stat[i].proc_resident/1024/1024; // in Mb + double mem = stat[i].proc_resident/1000/1000; // in MB return mem; #else return 0.0;