summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2019-06-20 11:19:47 -0400
committerAmar Tumballi <amarts@redhat.com>2019-06-26 03:41:47 +0000
commit323389858562f28f16ec2e32e0160140f7d76668 (patch)
tree6146ba275ee01931c1735bc134ce3e74427395e5 /libglusterfs/src
parentf36086db87aae24c10abde434f081d78b942735e (diff)
statedump: dump the minimum and maximum latency seen by each xlator
Change-Id: Ie9661282694eb9dcfb0d0bc6af512610e02f7347 fixes: bz#1722598 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/latency.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libglusterfs/src/latency.c b/libglusterfs/src/latency.c
index 06a973e0e7c..15b397c3799 100644
--- a/libglusterfs/src/latency.c
+++ b/libglusterfs/src/latency.c
@@ -78,8 +78,10 @@ gf_proc_dump_latency_info(xlator_t *xl)
if (!lat->count)
continue;
- gf_proc_dump_write(key, "%.03f,%" PRId64 ",%.03f",
- (lat->total / lat->count), lat->count, lat->total);
+ gf_proc_dump_write(
+ key, "AVG:%.03f,CNT:%" PRId64 ",TOTAL:%.03f,MIN:%.03f,MAX:%.03f",
+ (lat->total / lat->count), lat->count, lat->total, lat->min,
+ lat->max);
}
memset(xl->stats.interval.latencies, 0,