diff options
Diffstat (limited to 'xlators')
| -rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 4 | ||||
| -rw-r--r-- | xlators/protocol/client/src/client-handshake.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 7245c619b6a..6973433a03e 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -4261,10 +4261,8 @@ _afr_handle_ping_event (xlator_t *this, xlator_t *child_xlator, priv = this->private; - *child_latency_msec = child_xlator->client_latency; + *child_latency_msec = child_xlator->client_latency.mean / 1000.0; priv->child_latency[idx] = *child_latency_msec; - gf_log (child_xlator->name, GF_LOG_DEBUG, "Client ping @ %ld ms", - *child_latency_msec); for (i = 0; i < priv->child_count; i++) if (priv->child_up[i] == 1) diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index 944cae3a478..f370fae850d 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -15,6 +15,7 @@ #include "glusterfs.h" #include "statedump.h" #include "compat-errno.h" +#include "latency.h" #include "glusterfs3.h" #include "portmap-xdr.h" |
