Skip to content

Commit

Permalink
make plot-iostat.sh just work
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Fengguang committed Dec 13, 2011
1 parent 71f47e3 commit 16634e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plot-iostat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ cd $dir

test -s iostat || exit

[[ -f iostat-disk ]] || grep ${IOSTAT_DISK:-sda} iostat > iostat-disk
[[ -f iostat-cpu ]] || grep -A1 avg-cpu iostat | grep -v '[a-z-]' > iostat-cpu

plot iostat-disk iostat-cpu

lines=$(wc -l iostat-disk | cut -f1 -d' ')
Expand Down

0 comments on commit 16634e9

Please sign in to comment.