Skip to content

Commit 295d834

Browse files
committed
Remove dump constat cpu metric
1 parent c09ff25 commit 295d834

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/cpu.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ get_cpu_color(){
3131
}
3232

3333
get_cpu_usage() {
34-
echo "87.2"; return
3534
if is_osx; then
3635
if command_exists "iostat"; then
3736
iostat -c 2 -w "$refresh_interval" | tail -n 1 | awk '{ print 100-$6 }'
@@ -58,7 +57,7 @@ print_cpu_usage() {
5857
cpu_view="${cpu_view//'#{cpu.color2}'/$(echo "$cpu_color" | awk '{ print $2 }')}"
5958
cpu_view="${cpu_view//'#{cpu.color3}'/$(echo "$cpu_color" | awk '{ print $3 }')}"
6059

61-
echo "$cpu_view"
60+
echo "$(date +%M:%S) $cpu_view"
6261
}
6362

6463
main(){

0 commit comments

Comments
 (0)