summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/latency.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-16 09:38:35 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-17 11:57:27 -0700
commit75bda6e41d9b244ab9d040a035582ea6bd4c8120 (patch)
tree1678cdbef24d4902ff8c7622d3f969c3d73eaf67 /libglusterfs/src/latency.c
parent858944850adf7ec04898a15db90e231655ac4965 (diff)
libglusterfs/src/*.c: whitespace cleanup
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'libglusterfs/src/latency.c')
-rw-r--r--libglusterfs/src/latency.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libglusterfs/src/latency.c b/libglusterfs/src/latency.c
index bc2409138..7dfa13d14 100644
--- a/libglusterfs/src/latency.c
+++ b/libglusterfs/src/latency.c
@@ -95,9 +95,9 @@ gf_set_fop_from_fn_pointer (call_frame_t *frame, struct xlator_fops *fops, void
fop = GF_FOP_INODELK;
else if (fops->finodelk == fn)
fop = GF_FOP_FINODELK;
- else if (fops->entrylk == fn)
+ else if (fops->entrylk == fn)
fop = GF_FOP_ENTRYLK;
- else if (fops->fentrylk == fn)
+ else if (fops->fentrylk == fn)
fop = GF_FOP_FENTRYLK;
else if (fops->xattrop == fn)
fop = GF_FOP_XATTROP;
@@ -140,7 +140,7 @@ gf_update_latency (call_frame_t *frame)
lat = &frame->this->latencies[frame->op];
- lat->total += elapsed;
+ lat->total += elapsed;
lat->count++;
lat->mean = lat->mean + (elapsed - lat->mean) / lat->count;
}
@@ -162,7 +162,7 @@ gf_proc_dump_latency_info (xlator_t *xl)
gf_proc_dump_write (key, "%.03f,%"PRId64",%.03f",
xl->latencies[i].mean,
xl->latencies[i].count,
- xl->latencies[i].total);
+ xl->latencies[i].total);
}
}