]> Creatis software - clitk.git/blobdiff - common/clitkMemoryUsage.cxx
Be sure to have memory consuption in kB, MB, GB instead of kibibytes, ...
[clitk.git] / common / clitkMemoryUsage.cxx
index e2a095dab5e080dae4e058b2517be8233c450a45..c95c2859b925e7f7dfa24575e4b53d28d88f53b6 100644 (file)
@@ -49,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;