2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Flush csv output per row

Improve responsiveness of csv output when piping
This commit is contained in:
Jarrod Johnson 2019-06-25 11:03:50 -04:00
parent ffe9606de1
commit ef2b324eed

View File

@ -185,6 +185,7 @@ def format_csv(csvwriter, orderedsensors, resdata, showtime=True):
except KeyError:
rowdata.append('N/A')
csvwriter.writerow(rowdata)
sys.stdout.flush()
def main():