From 9577036844c3450cbd0caa5aabf35ef255ff8f22 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 22 May 2015 14:22:34 -0400 Subject: Commit some debug output for the new Memory/CPU calculations. --- libLumina/LuminaOS-FreeBSD.cpp | 6 +++++- libLumina/LuminaUtils.cpp | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libLumina/LuminaOS-FreeBSD.cpp b/libLumina/LuminaOS-FreeBSD.cpp index 3bf857d9..290ddc11 100644 --- a/libLumina/LuminaOS-FreeBSD.cpp +++ b/libLumina/LuminaOS-FreeBSD.cpp @@ -297,7 +297,11 @@ int LOS::MemoryUsagePercent(){ if(mem[i].contains("Inact") || mem[i].contains("Free")){ fB = fB+LUtils::DisplaySizeToBytes(mem[i].section(" ",0,0)); } else{ uB = uB+LUtils::DisplaySizeToBytes(mem[i].section(" ",0,0)); } } - return qRound( (uB/(fB+uB)) * 100.0); + qDebug() << "Memory Calc:" << mem; + qDebug() << " - Bytes:" << "U:"<