summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM S Vishwanath Bhat <vishwanath@gluster.com>2011-10-19 18:41:35 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-27 03:48:35 -0700
commit3b0eecb53f3a061016d277f862d54e15d2646bd6 (patch)
tree8d7a68470e8618515994d978370c963e8016b572
parent76653251218ba6d626430eba5ccb014a8228de9e (diff)
Improves the 'profile info' output. Makes it more self explanatory.v3.2.5qa3
Output of profile info was not self explanatory. Change-Id: Iaab0ce055b7e0548645a0a77921e608497c15e43 BUG: 3028 Testcase: run 'profile info' and see if all the fields and columns are self explanatory. Reviewed-on: http://review.gluster.com/620 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--cli/src/cli-rpc-ops.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 37fbc26c8..7cf5929d8 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -2942,11 +2942,11 @@ cmd_profile_volume_brick_out (dict_t *dict, int count, int interval)
cli_out ("Cumulative Stats:");
else
cli_out ("Interval %d Stats:", interval);
- snprintf (output, sizeof (output), "%14s", "Block Size: ");
+ snprintf (output, sizeof (output), "%14s", "Block Size:");
snprintf (read_blocks, sizeof (read_blocks), "%14s",
- "No. of Reads: ");
+ "No. of Reads:");
snprintf (write_blocks, sizeof (write_blocks), "%14s",
- "No. of Writes: ");
+ "No. of Writes:");
index = 14;
for (i = 0; i < 32; i++) {
if ((rb_counts[i] == 0) && (wb_counts[i] == 0))
@@ -2977,12 +2977,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), "%12s", "Block Size: ");
- snprintf (read_blocks, sizeof (read_blocks), "%12s",
- "Read: ");
- snprintf (write_blocks, sizeof (write_blocks), "%12s",
- "Write: ");
- index = 12;
+ 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;
}
}
@@ -3015,9 +3015,9 @@ cmd_profile_volume_brick_out (dict_t *dict, int count, int interval)
}
}
cli_out ("");
- cli_out ("%12s : %"PRId64, "Duration", sec);
- cli_out ("%12s : %"PRId64, "BytesRead", r_count);
- cli_out ("%12s : %"PRId64, "BytesWritten", w_count);
+ cli_out ("%12s : %"PRId64" seconds", "Duration", sec);
+ cli_out ("%12s : %"PRId64" bytes", "Data Read", r_count);
+ cli_out ("%12s : %"PRId64" bytes", "Data Written", w_count);
cli_out ("");
}