From aa035a61a7cbbb8f1fb24357d51f8c06f8d2a6e5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 3 Oct 2021 17:06:34 -0400 Subject: [PATCH] Correct latency units and format name --- client-cli/pvc/cli_lib/ceph.py | 8 ++++---- client-cli/pvc/pvc.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client-cli/pvc/cli_lib/ceph.py b/client-cli/pvc/cli_lib/ceph.py index f89e02a3..eca61c56 100644 --- a/client-cli/pvc/cli_lib/ceph.py +++ b/client-cli/pvc/cli_lib/ceph.py @@ -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, '', '', '', diff --git a/client-cli/pvc/pvc.py b/client-cli/pvc/pvc.py index 854bd2f1..23f49069 100755 --- a/client-cli/pvc/pvc.py +++ b/client-cli/pvc/pvc.py @@ -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