From: dsarrut <dsarrut> Date: Thu, 10 Mar 2011 16:02:04 +0000 (+0000) Subject: Return 0.0 if libstatgrab is not used X-Git-Tag: v1.2.0~185 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=526a19406ee0edf8f062a9ec3c0c6255e33979c8;p=clitk.git Return 0.0 if libstatgrab is not used --- diff --git a/common/clitkMemoryUsage.cxx b/common/clitkMemoryUsage.cxx index 8ceff61..ecabfc1 100644 --- a/common/clitkMemoryUsage.cxx +++ b/common/clitkMemoryUsage.cxx @@ -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 }