Correct latency units and format name

This commit is contained in:
Joshua Boniface 2021-10-03 17:06:34 -04:00
parent 8edce74b85
commit cb66b16045
2 changed files with 6 additions and 6 deletions

View File

@ -2051,10 +2051,10 @@ def format_info_benchmark_json(config, benchmark_information):
while len(iops_data) < max_rows: while len(iops_data) < max_rows:
iops_data.append('') iops_data.append('')
lat_data = [ job_details[io_class]['lat_ns']['min'], lat_data = [ int(job_details[io_class]['lat_ns']['min']) / 1000,
job_details[io_class]['lat_ns']['max'], int(job_details[io_class]['lat_ns']['max']) / 1000,
job_details[io_class]['lat_ns']['mean'], int(job_details[io_class]['lat_ns']['mean']) / 1000,
job_details[io_class]['lat_ns']['stddev'], int(job_details[io_class]['lat_ns']['stddev']) / 1000,
'', '',
'', '',
'', '',

View File

@ -2542,8 +2542,8 @@ def ceph_benchmark_run(pool):
'job', required=True 'job', required=True
) )
@click.option( @click.option(
'-f', '--format', 'oformat', default='pretty', show_default=True, '-f', '--format', 'oformat', default='summary', show_default=True,
type=click.Choice(['pretty', 'json', 'json-pretty']), type=click.Choice(['summary', 'json', 'json-pretty']),
help='Output format of benchmark information.' help='Output format of benchmark information.'
) )
@cluster_req @cluster_req