Skip to content

Commit

Permalink
single example for cpu usage
Browse files Browse the repository at this point in the history
tenox7 committed Jan 28, 2024
1 parent eb21fa4 commit be16850
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -69,12 +69,7 @@ for other platforms see [releases tab](https://github.com/tenox7/ttyplot/release

### cpu usage from vmstat using awk to pick the right column
```
vmstat -n 1 | gawk '{ print 100-int($(NF-2)); fflush(); }' | ttyplot
```

### cpu usage from sar with title and fixed scale to 100%
```
sar 1 | gawk '{ print 100-int($NF); fflush(); }' | ttyplot -s 100 -t "cpu usage" -u "%"
vmstat -n 1 | gawk '{ print 100-int($(NF-2)); fflush(); }' | ttyplot -s 100 -t "CPU Usage" -u "%"
```

### memory usage from sar, using perl to pick the right column

0 comments on commit be16850

Please sign in to comment.