mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* bin/mem-used: fix calculation to account for buffers and cache
This commit is contained in:
parent
3ea804b38f
commit
73574ffce5
2 changed files with 3 additions and 4 deletions
|
@ -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
4
debian/changelog
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue