From: dsarrut Date: Fri, 11 Mar 2011 07:14:56 +0000 (+0000) Subject: Display 'NA' if memory usage is not available X-Git-Tag: v1.2.0~179 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=91dc23d0440db7c36cabdb46271bebe30a28819c;p=clitk.git Display 'NA' if memory usage is not available --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 141cd18..a2336e7 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -335,7 +335,8 @@ vvMainWindow::vvMainWindow():vvMainWindowBase() void vvMainWindow::UpdateMemoryUsage() { // clitk::PrintMemory(true); - infoPanel->setMemoryInMb(QString::number(clitk::GetMemoryUsageInMb())+" MiB"); + if (clitk::GetMemoryUsageInMb() == 0) infoPanel->setMemoryInMb("NA"); + else infoPanel->setMemoryInMb(QString::number(clitk::GetMemoryUsageInMb())+" MiB"); } //------------------------------------------------------------------------------