diff options
author | shishir gowda <shishirng@gluster.com> | 2011-03-30 00:28:29 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-30 04:28:14 -0700 |
commit | b40d510cf534b6fa1acb827ed7c26bcdebc5fd36 (patch) | |
tree | b22fc79322c905e22c2c9c7fbf975c9cbec22a2f /xlators/debug/io-stats | |
parent | d088ffe14da46247052e34c5cfaced46f5079b24 (diff) |
io-stats list: init counter to 0 for counting members
By setting init the counter cnt to -1, we were loosing 1 entry when
displaying the list on the cli.
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2606 (gluster volume top open lists only 99 entries)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2606
Diffstat (limited to 'xlators/debug/io-stats')
-rw-r--r-- | xlators/debug/io-stats/src/io-stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 5e0aef84f..863f77a2a 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -988,7 +988,7 @@ io_stats_dump_stats_to_dict (xlator_t *this, dict_t *resp, ios_stats_type_t flags, int32_t list_cnt) { struct ios_conf *conf = NULL; - int cnt = -1; + int cnt = 0; char key[256]; struct ios_stat_head *list_head = NULL; struct ios_stat_list *entry = NULL; |