From 952da97e1338852c8d5eeba380d2244a1f433edf Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 21 May 2015 15:27:33 -0400 Subject: Add a few new functions to LuminaOS: 1) CPUTemperatures() 2) CPUUsagePercent() 3) MemoryUsagePercent() These functions have been filled out for the LuminaOS-FreeBSD implementation, but not for any of the others yet. The FreeBSD implementation has also not been tested yet. Also add a new "DisplayNumberToBytes()" function into LuminaUtils for converting sizes in a string format (50M or 50MB for example) into a double with the number of bytes for calculations. --- libLumina/LuminaOS-template.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libLumina/LuminaOS-template.cpp') diff --git a/libLumina/LuminaOS-template.cpp b/libLumina/LuminaOS-template.cpp index aabd7da3..eb233913 100644 --- a/libLumina/LuminaOS-template.cpp +++ b/libLumina/LuminaOS-template.cpp @@ -121,4 +121,16 @@ QString LOS::FileSystemCapacity(QString dir) { //Return: percentage capacity as return QString(); } +QStringList LOS::CPUTemperatures(){ //Returns: List containing the temperature of any CPU's ("50C" for example) + return QStringList(); //not implemented yet +} + +int LOS::CPUUsagePercent(){ //Returns: Overall percentage of the amount of CPU cycles in use (-1 for errors) + return -1; //not implemented yet +} + +int LOS::MemoryUsagePercent(){ + return -1; //not implemented yet +} + #endif -- cgit