Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa720e
)
Add mem to script; disabled of course.
author
Marco Peereboom
<marco@conformal.com>
Sun, 13 Sep 2009 21:01:36 +0000
(21:01 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Sun, 13 Sep 2009 21:01:36 +0000
(21:01 +0000)
from sepp0@openbsd.org.ar
baraction.sh
patch
|
blob
|
history
diff --git
a/baraction.sh
b/baraction.sh
index
4a44a7a
..
03c32d2
100644
(file)
--- a/
baraction.sh
+++ b/
baraction.sh
@@
-9,6
+9,11
@@
print_date() {
echo -n "${DATE} "
}
+print_mem() {
+ MEM=`/usr/bin/top | grep Free: | awk {'print $6'}`
+ echo -n "Free mem: $MEM "
+}
+
_print_cpu() {
typeset -R4 _1=${1} _2=${2} _3=${3} _4=${4} _5=${5}
echo -n "CPU:${_1}% User${_2}% Nice${_3}% Sys${_4}% Int${_5}% Idle "
@@
-81,6
+86,7
@@
while :; do
fi
if [ $I -gt 2 ]; then
# print_date
+ # print_mem $MEM
print_cpu $REPLY
print_apm $APM_DATA
echo ""