summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushal M <kaushal@gluster.com>2011-08-19 15:07:36 +0530
committerVijay Bellur <vijay@gluster.com>2011-08-24 04:28:47 -0700
commitf16a44f94f76e6c677cee37090d059e8bb5443f5 (patch)
treeb51b086e94202191bdb531ec2c8ddddcdd4c4e06
parent9848ac8bf7a6854e9d4dee2dcb53621c67b33d6e (diff)
cli: "profile info" output improvements
Some changes to profile info output. Change-Id: I94a4bec1ca1c0670b3d9643f8321683b59c665aa BUG: 3028 Reviewed-on: http://review.gluster.com/260 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
-rw-r--r--cli/src/cli-rpc-ops.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 498cdbf74e2..52e3d11d7fc 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -3109,12 +3109,12 @@ cmd_profile_volume_brick_out (dict_t *dict, int count, int interval)
memset (output, 0, sizeof (output));
memset (read_blocks, 0, sizeof (read_blocks));
memset (write_blocks, 0, sizeof (write_blocks));
- snprintf (output, sizeof (output), "%13s", "Block Size:");
- snprintf (read_blocks, sizeof (read_blocks), "%13s",
- "No of Reads:");
- snprintf (write_blocks, sizeof (write_blocks), "%13s",
- "No of Writes:");
- index = 13;
+ snprintf (output, sizeof (output), "%14s", "Block Size:");
+ snprintf (read_blocks, sizeof (read_blocks), "%14s",
+ "No. of Reads:");
+ snprintf (write_blocks, sizeof (write_blocks), "%14s",
+ "No. of Writes:");
+ index = 14;
}
}
@@ -3127,12 +3127,17 @@ cmd_profile_volume_brick_out (dict_t *dict, int count, int interval)
if (profile_info[i].fop_hits == 0)
continue;
if (is_header_printed == 0) {
- cli_out ("%11s %14s %14s %14s %20s %10s", "%-latency", "Avg-latency", "Min-Latency", "Max-Latency", "No of calls", "Fop");
- cli_out ("%11s %14s %14s %14s %20s %10s", "---------", "-----------", "-----------", "-----------", "-----------", "----");
+ cli_out ("%10s %13s %13s %13s %14s %11s", "%-latency",
+ "Avg-latency", "Min-Latency", "Max-Latency",
+ "No. of calls", "Fop");
+ cli_out ("%10s %13s %13s %13s %14s %11s", "---------",
+ "-----------", "-----------", "-----------",
+ "------------", "----");
is_header_printed = 1;
}
if (profile_info[i].fop_hits) {
- cli_out ("%11.2lf %11.2lf us %11.2lf us %11.2lf us %20"PRId64" %10s",
+ cli_out ("%10.2lf %10.2lf us %10.2lf us %10.2lf us"
+ " %14"PRId64" %11s",
profile_info[i].percentage_avg_latency,
profile_info[i].avg_latency,
profile_info[i].min_latency,