maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Can somebody please post a script which will allow me to see the percentage RAM used? PLEASE? PLEASE? (https://talk.maemo.org/showthread.php?t=75202)

lma 2011-07-28 08:12

Re: Can somebody please post a script which will allow me to see the percentage RAM used? PLEASE? PLEASE?
 
Code:

awk '/^MemTotal/ { t = $2 } /^MemFree/ { f += $2 } /^Buffers/ { f += $2 } /^Cached/ { f += $2 } END { print ( t - f ) * 100 / t }' /proc/meminfo


All times are GMT. The time now is 05:44.

vBulletin® Version 3.8.8