* bin/mem-used: fix calculation to account for buffers and cache

This commit is contained in:
Dustin Kirkland 2009-01-22 12:23:21 -06:00
commit 73574ffce5
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,3 @@
#!/bin/sh -e #!/bin/sh -e
mem=`free | grep -m 1 "^Mem:" | awk '{printf "%.0f", 100 * $3 / $2}'` free | awk '/buffers\/cache:/ {printf "%.0f%%\n", 100*$3/($3 + $4)}'
echo $mem"%"

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
screen-profiles (1.14) UNRELEASED; urgency=low screen-profiles (1.14) UNRELEASED; urgency=low
* * bin/mem-used: fix calculation to account for buffers and cache
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 22 Jan 2009 00:05:04 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 22 Jan 2009 12:20:27 -0600
screen-profiles (1.13-0ubuntu1) jaunty; urgency=low screen-profiles (1.13-0ubuntu1) jaunty; urgency=low