]> Creatis software - clitk.git/commitdiff
Return 0.0 if libstatgrab is not used
authordsarrut <dsarrut>
Thu, 10 Mar 2011 16:02:04 +0000 (16:02 +0000)
committerdsarrut <dsarrut>
Thu, 10 Mar 2011 16:02:04 +0000 (16:02 +0000)
common/clitkMemoryUsage.cxx

index 8ceff61a1e4c90cc55363de927b375e143ddb087..ecabfc1af97eacfd51c65ae4afd3ce5b296f1d7d 100644 (file)
@@ -48,6 +48,8 @@ double clitk::GetMemoryUsageInMb()
   // Display total memory size 
   double mem = stat[i].proc_resident/1024/1024; // in Mb
   return mem;
+#else
+  return 0.0;
 #endif
   }