diff options
author | Ken Moore <ken@pcbsd.org> | 2015-05-21 15:27:33 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-05-21 15:27:33 -0400 |
commit | 952da97e1338852c8d5eeba380d2244a1f433edf (patch) | |
tree | 00296866beb820d6491abc6f33f1d2b0bba151b9 /libLumina/LuminaOS-OpenBSD.cpp | |
parent | Remove the extra painting check/update routine for the system tray - send it ... (diff) | |
download | lumina-952da97e1338852c8d5eeba380d2244a1f433edf.tar.gz lumina-952da97e1338852c8d5eeba380d2244a1f433edf.tar.bz2 lumina-952da97e1338852c8d5eeba380d2244a1f433edf.zip |
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.
Diffstat (limited to 'libLumina/LuminaOS-OpenBSD.cpp')
-rw-r--r-- | libLumina/LuminaOS-OpenBSD.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libLumina/LuminaOS-OpenBSD.cpp b/libLumina/LuminaOS-OpenBSD.cpp index 5fda4866..10bb4e15 100644 --- a/libLumina/LuminaOS-OpenBSD.cpp +++ b/libLumina/LuminaOS-OpenBSD.cpp @@ -232,4 +232,16 @@ QString LOS::FileSystemCapacity(QString dir) { return capacity; } +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 |