We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c09ff25 commit 295d834Copy full SHA for 295d834
scripts/cpu.sh
@@ -31,7 +31,6 @@ get_cpu_color(){
31
}
32
33
get_cpu_usage() {
34
- echo "87.2"; return
35
if is_osx; then
36
if command_exists "iostat"; then
37
iostat -c 2 -w "$refresh_interval" | tail -n 1 | awk '{ print 100-$6 }'
@@ -58,7 +57,7 @@ print_cpu_usage() {
58
57
cpu_view="${cpu_view//'#{cpu.color2}'/$(echo "$cpu_color" | awk '{ print $2 }')}"
59
cpu_view="${cpu_view//'#{cpu.color3}'/$(echo "$cpu_color" | awk '{ print $3 }')}"
60
61
- echo "$cpu_view"
+ echo "$(date +%M:%S) $cpu_view"
62
63
64
main(){
0 commit comments