From 125fc934e7f4c669f67e5eec5b0e3dae3a2b6d72 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 25 Sep 2017 16:44:06 +0530 Subject: stack: change gettimeofday() to clock_gettime() For achieving the above, needed below changes too. * more sanity into how 'frame->op' is assigned. * infra to have 'stats' as separate section in 'xlator_t' structure Updates #137 Change-Id: I36679bf9577f3ed00a695b4e7d92870dcb3db8e1 Signed-off-by: Amar Tumballi --- libglusterfs/src/latency.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libglusterfs/src/latency.h') diff --git a/libglusterfs/src/latency.h b/libglusterfs/src/latency.h index 81acbf48478..132520c1263 100644 --- a/libglusterfs/src/latency.h +++ b/libglusterfs/src/latency.h @@ -14,11 +14,9 @@ #include "glusterfs.h" typedef struct fop_latency { - uint64_t min; /* min time for the call (microseconds) */ - uint64_t max; /* max time for the call (microseconds) */ + double min; /* min time for the call (microseconds) */ + double max; /* max time for the call (microseconds) */ double total; /* total time (microseconds) */ - double std; /* standard deviation */ - double mean; /* mean (microseconds) */ uint64_t count; } fop_latency_t; -- cgit