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:
iops_data.append('')
lat_data = [ job_details[io_class]['lat_ns']['min'],
job_details[io_class]['lat_ns']['max'],
job_details[io_class]['lat_ns']['mean'],
job_details[io_class]['lat_ns']['stddev'],
lat_data = [ int(job_details[io_class]['lat_ns']['min']) / 1000,
int(job_details[io_class]['lat_ns']['max']) / 1000,
int(job_details[io_class]['lat_ns']['mean']) / 1000,
int(job_details[io_class]['lat_ns']['stddev']) / 1000,
'',
'',
'',

View File

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