ttyplot

Realtime terminal plotter
git clone git://git.sgregoratto.me/ttyplot
Log | Files | Refs | README | LICENSE

commit 21bd25047460857612e29221f42c7633045e15de
parent e463b88103948f33a0a0edd43bdf9bfa5afb701c
Author: Antoni Sawicki <as@tenoware.com>
Date:   Sun, 14 Oct 2018 02:51:17 -0700

readme fix

Diffstat:
MREADME.md | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -1,6 +1,6 @@ ttyplot ======= -a simple general purpose plotting utility for tty with data input from stdin +a realtime plotting utility for terminal with data input from stdin takes data from stdin, most commonly unix pipeline and plots in text mode on a terminal or console, supports rate calculation for counters and up to two plos on a single display using reverse video for second line @@ -26,6 +26,11 @@ vmstat -n 1 | gawk '{ print 100-int($(NF-2)); fflush(); }' | ttyplot sar 1 | gawk '{ print 100-int($NF); fflush(); }' | ttyplot -s 100 -t "cpu usage" -u "%" ``` +### memory usage from sar +``` +sar -r 1 | gawk '{ print $5; fflush(); }' | ttyplot -s 100 -t "memory used %" -u "%" +``` + ### ping plot ``` ping 8.8.8.8 | gawk '{ gsub(/time=/,"",$(NF-1)); print $(NF-1); fflush(); }' | ttyplot -t "ping to 8.8.8.8" -u ms