From ca3588cab04e6dfa93b86eac18c6abc4614a0e17 Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Thu, 24 Dec 2020 00:24:36 +0500 Subject: [PATCH] Improve network bandwidth executor example too (stdbuf -oL) If memusage example got stdbuf -oL awk, why further examples can't use same? --- doc/tint2.1 | 2 +- doc/tint2.html | 2 +- doc/tint2.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tint2.1 b/doc/tint2.1 index a553872..c745986 100644 --- a/doc/tint2.1 +++ b/doc/tint2.1 @@ -843,7 +843,7 @@ execp_continuous = 1 .RS .nf execp = new -execp_command = stdbuf \-oL bwm\-ng \-o csv \-t 1000 | awk \-F ';' '/total/ { printf "Net: %.0f Mb/s\\n", ($5*8/1.0e6) }; fflush(stdout)' +execp_command = stdbuf \-oL bwm\-ng \-o csv \-t 1000 | stdbuf -oL awk \-F ';' '/total/ { printf "Net: %.0f Mb/s\\n", ($5*8/1.0e6) }' execp_continuous = 1 execp_interval = 1 .fi diff --git a/doc/tint2.html b/doc/tint2.html index 5311c66..2acd5ea 100644 --- a/doc/tint2.html +++ b/doc/tint2.html @@ -379,7 +379,7 @@ execp_interval = 1 execp_continuous = 1
Network load
execp = new
-execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | awk -F ';' '/total/ { printf "Net: %.0f Mb/s\n", ($5*8/1.0e6) }; fflush(stdout)'
+execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | stdbuf -oL awk -F ';' '/total/ { printf "Net: %.0f Mb/s\n", ($5*8/1.0e6) }'
 execp_continuous = 1
 execp_interval = 1
 
diff --git a/doc/tint2.md b/doc/tint2.md index 1e2d2f5..af52798 100644 --- a/doc/tint2.md +++ b/doc/tint2.md @@ -705,7 +705,7 @@ execp_continuous = 1 ``` execp = new -execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | awk -F ';' '/total/ { printf "Net: %.0f Mb/s\n", ($5*8/1.0e6) }; fflush(stdout)' +execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | stdbuf -oL awk -F ';' '/total/ { printf "Net: %.0f Mb/s\n", ($5*8/1.0e6) }' execp_continuous = 1 execp_interval = 1 ```