mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-06-24 06:41:13 +08:00
corrected imperfect awk flushing in POD example
This commit is contained in:
parent
3f4ed11b09
commit
7834e03df6
@ -20,7 +20,7 @@ Simple real-time plotting example: plot how much data is received on the wlan0
|
|||||||
network interface in bytes/second (uses bash, awk and Linux):
|
network interface in bytes/second (uses bash, awk and Linux):
|
||||||
|
|
||||||
$ while true; do sleep 1; cat /proc/net/dev; done |
|
$ while true; do sleep 1; cat /proc/net/dev; done |
|
||||||
awk '/wlan0/ {if(b) {print $2-b; fflush()} b=$2}' |
|
awk -Winteractive '/wlan0/ {if(b) {print $2-b} b=$2}' |
|
||||||
feedgnuplot --lines --stream --xlen 10 --ylabel 'Bytes/sec' --xlabel seconds
|
feedgnuplot --lines --stream --xlen 10 --ylabel 'Bytes/sec' --xlabel seconds
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
@ -644,7 +644,7 @@ Simple real-time plotting example: plot how much data is received on the wlan0
|
|||||||
network interface in bytes/second (uses bash, awk and Linux):
|
network interface in bytes/second (uses bash, awk and Linux):
|
||||||
|
|
||||||
$ while true; do sleep 1; cat /proc/net/dev; done |
|
$ while true; do sleep 1; cat /proc/net/dev; done |
|
||||||
awk '/wlan0/ {if(b) {print $2-b; fflush()} b=$2}' |
|
awk -Winteractive '/wlan0/ {if(b) {print $2-b} b=$2}' |
|
||||||
feedgnuplot --lines --stream --xlen 10 --ylabel 'Bytes/sec' --xlabel seconds
|
feedgnuplot --lines --stream --xlen 10 --ylabel 'Bytes/sec' --xlabel seconds
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
Loading…
Reference in New Issue
Block a user