eta: calculate aggregate bw statistics even when eta is disabled
authorVincent Fu <vincent.fu@samsung.com>
Thu, 3 Aug 2023 00:53:21 +0000 (20:53 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Thu, 3 Aug 2023 15:49:08 +0000 (11:49 -0400)
commit62f35562722f0c903567096d0f10a836d1ae2f60
tree62535d7186b861f49e739a75db9a05f5f3163073
parent7b57011427a8204bd63671b08dde56cd9e879d68
eta: calculate aggregate bw statistics even when eta is disabled

The --bandwidth-log command-line option instructs fio to generate
aggregate bandwidth log files. These measurements are recorded by the
code generating the eta status line. When eta is disabled the aggregate
bandwidth log measurements are not calculated. Change the eta code to
record the measurements even when eta is not needed.

eta is disabled under these conditions
- explicitly with --eta=never
- STDOUT is not a TTY (shell redirection, nohup, etc)
- output format excludes normal output

Fixes: https://github.com/axboe/fio/issues/1599
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
eta.c