diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-10-01 14:25:41 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-10-02 16:11:00 -0400 |
commit | 8440a886112b46a8b402679dca9d8b5662a0d73e (patch) | |
tree | 5892c7d1d4bf703c326d53b25e4735c576346e08 /net/sunrpc/xprtrdma/transport.c | |
parent | 3968a8a5310404c2f0b9e4d9f28cab13a12bc4fd (diff) | |
download | lwn-8440a886112b46a8b402679dca9d8b5662a0d73e.tar.gz lwn-8440a886112b46a8b402679dca9d8b5662a0d73e.zip |
sunrpc: Report connect_time in seconds
The way connection-oriented transports report connect_time is wrong:
it's supposed to be in seconds, not in jiffies.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/transport.c')
-rw-r--r-- | net/sunrpc/xprtrdma/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index 087acfce142a..289d13cad638 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c @@ -776,7 +776,7 @@ void xprt_rdma_print_stats(struct rpc_xprt *xprt, struct seq_file *seq) 0, /* need a local port? */ xprt->stat.bind_count, xprt->stat.connect_count, - xprt->stat.connect_time, + xprt->stat.connect_time / HZ, idle_time, xprt->stat.sends, xprt->stat.recvs, |