From 91dc23d0440db7c36cabdb46271bebe30a28819c Mon Sep 17 00:00:00 2001 From: dsarrut Date: Fri, 11 Mar 2011 07:14:56 +0000 Subject: [PATCH] Display 'NA' if memory usage is not available --- vv/vvMainWindow.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } //------------------------------------------------------------------------------ -- 2.47.1