[Kde-hardware-devel] getTotalRAM() and getFreeRAM() in Solid

John Tapsell johnflux at gmail.com
Fri Jun 30 00:35:56 CEST 2006


There is code in ksysguardd that gets the memory, but it's not that
difficult:  you just read /proc/meminfo


But as a caveat, the trouble with ram is that it's difficult to report
nicely.  The numbers often don't mean anything.  What do you class a
free memory?  Does that include buffer? And so on.


More information about the Kde-hardware-devel mailing list