Commit b47c0aa6 authored by Martin Schultz's avatar Martin Schultz

* parse proc/meminfo manually on linux systems

parent 14c1eb3d
......@@ -147,10 +147,9 @@ void MemInfoPlugin::cpuMemoryInfoUpdate() {
if (mainMemBar_) {
unsigned long totalRamMB = Utils::Memory::queryTotalRAM();
unsigned long freeRamMB = Utils::Memory::queryFreeRAM();
unsigned long bufferRamMB = Utils::Memory::queryBufferedRAM();
mainMemBar_->setRange( 0 , totalRamMB );
mainMemBar_->setValue( totalRamMB-freeRamMB-bufferRamMB);
mainMemBar_->setValue( totalRamMB - freeRamMB );
setProgressBarStyleSheet(mainMemBar_);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment