Skip to content

Commit f9ebbc7

Browse files
committed
Add output header
1 parent 4eb25eb commit f9ebbc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source-code/mpi4py/file_trafficker.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def main():
132132
# create file names
133133
files = [f'{options.basename}_{file_id:06d}' for file_id in range(options.nr_files)]
134134

135+
# print output header
136+
print('operation,host,cpu_number,time_seconds,bytes_per_second')
137+
135138
# create files
136139
if options.verbose:
137140
print(f'creating {len(files)} files', file=sys.stderr)
@@ -164,7 +167,7 @@ def main():
164167
print(f'reading {len(files)} files', file=sys.stderr)
165168
with executor_cls() as executor:
166169
results = executor.map(remove_file, files)
167-
print('\n'.join(f'unlink,{location},{time}' for localtion, time in results))
170+
print('\n'.join(f'unlink,{location},{time},' for localtion, time in results))
168171

169172
if options.verbose:
170173
print('completed succesfully', file=sys.stderr)

0 commit comments

Comments
 (0)