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 --- rpc/rpc-lib/src/rpc-clnt-ping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rpc/rpc-lib/src') diff --git a/rpc/rpc-lib/src/rpc-clnt-ping.c b/rpc/rpc-lib/src/rpc-clnt-ping.c index 5a97f4bb9cf..2f11341b0d5 100644 --- a/rpc/rpc-lib/src/rpc-clnt-ping.c +++ b/rpc/rpc-lib/src/rpc-clnt-ping.c @@ -205,7 +205,8 @@ rpc_clnt_ping_cbk (struct rpc_req *req, struct iovec *iov, int count, pthread_mutex_lock (&conn->lock); { - this->client_latency = latency_msec; + /* TODO: concerned people, check why this is used nowhere? */ + this->stats.client_latency = latency_msec; gf_log (THIS->name, GF_LOG_DEBUG, "Ping latency is %" PRIu64 "ms", latency_msec); -- cgit