]> git.proxmox.com Git - mirror_zfs.git/commit
arcstat: flush stdout / outfile after each line
authorFabian-Gruenbichler <f.gruenbichler@proxmox.com>
Thu, 26 Oct 2017 19:18:49 +0000 (21:18 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Oct 2017 19:18:49 +0000 (12:18 -0700)
commit3ad59c015dce45965fa309a0364a46c6f8bdda9f
tree1c20fd63d990861e40d041e40884c96dbffd1477
parent69b229bd60135838d606f5da41831d409d11de2d
arcstat: flush stdout / outfile after each line

Otherwise, if arcstat gets interrupted before the desired number of
iterations is reached, the output file will be empty (both if set via
'-o' or via shell redirection).

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Closes #6775
cmd/arcstat/arcstat.py