Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make osx compile again.
[spectrwm.git]
/
baraction.sh
diff --git
a/baraction.sh
b/baraction.sh
index
1248080
..
7455219
100644
(file)
--- a/
baraction.sh
+++ b/
baraction.sh
@@
-18,7
+18,7
@@
print_mem() {
_print_cpu() {
typeset -R4 _1=${1} _2=${2} _3=${3} _4=${4} _5=${5}
_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 "
+ echo -n "CPU:${_1}% User${_2}% Nice${_3}% Sys${_4}% Int${_5}% Idle "
}
print_cpu() {
}
print_cpu() {
@@
-78,7
+78,7
@@
print_apm() {
print_cpuspeed() {
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
print_cpuspeed() {
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
- echo -n " CPU speed: $CPU_SPEED MHz"
+ echo -n "CPU speed: $CPU_SPEED MHz "
}
while :; do
}
while :; do
@@
-95,10
+95,10
@@
while :; do
fi
if [ $I -gt 2 ]; then
# print_date
fi
if [ $I -gt 2 ]; then
# print_date
- # print_mem $MEM
+ print_mem $MEM
print_cpu $REPLY
print_cpu $REPLY
- print_apm $APM_DATA
print_cpuspeed
print_cpuspeed
+ print_apm $APM_DATA
echo ""
fi
I=$(( ${I} + 1 ));
echo ""
fi
I=$(( ${I} + 1 ));