HOME | DD

Published: 2012-01-14 03:25:00 +0000 UTC; Views: 1058; Favourites: 3; Downloads: 32
Redirect to original
Description
My current desktop.Wallpaper: Distant Mountains
Related content
Comments: 4
nemox1111 [2012-01-17 18:05:22 +0000 UTC]
and how did you Configure geektool to show memory in percentage instead of raw information?
👍: 0 ⏩: 1
PhotonFossil In reply to nemox1111 [2012-01-18 03:22:13 +0000 UTC]
totalram=`top -l 1 | awk '/PhysMem/ {print $8 $10}' | sed "s/M/ /g" | awk '{sum+= $1 + $2 } END{print sum}' ` ; usedram=`top -l 1 | awk '/PhysMem/ {print $8}' | sed "s/M/ /g"` ; rounded=`echo $totalram $usedram | awk '{ print $2 * 100 /$1}' | awk '{print int($1+0.5)}'` ; echo "Memory: ""$rounded""%"
The cloud icon is Cloud app!
👍: 0 ⏩: 1