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:
4d964ea
)
Add CPU speed to baraction.sh
author
Darrin Chandler
<dwchandler@stilyagin.com>
Wed, 13 Jan 2010 22:17:03 +0000
(22:17 +0000)
committer
Darrin Chandler
<dwchandler@stilyagin.com>
Wed, 13 Jan 2010 22:17:03 +0000
(22:17 +0000)
Diff from Joe Gidi <joe@entropicblur.com>
baraction.sh
patch
|
blob
|
history
diff --git
a/baraction.sh
b/baraction.sh
index
57f0e60
..
1248080
100644
(file)
--- a/
baraction.sh
+++ b/
baraction.sh
@@
-76,6
+76,11
@@
print_apm() {
fi
}
+print_cpuspeed() {
+ CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
+ echo -n " CPU speed: $CPU_SPEED MHz"
+}
+
while :; do
# instead of sleeping, use iostat as the update timer.
# cache the output of apm(8), no need to call that every second.
@@
-93,6
+98,7
@@
while :; do
# print_mem $MEM
print_cpu $REPLY
print_apm $APM_DATA
+ print_cpuspeed
echo ""
fi
I=$(( ${I} + 1 ));