From 526a19406ee0edf8f062a9ec3c0c6255e33979c8 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Thu, 10 Mar 2011 16:02:04 +0000 Subject: [PATCH] Return 0.0 if libstatgrab is not used --- common/clitkMemoryUsage.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.47.1