diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2021-07-07 13:23:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 13:23:45 +0300 |
commit | 59394b5f9d8891cb59c42ac87fd8f0d41b28db94 (patch) | |
tree | f600bc11081534e8fc5188843a1bb16b9124ff7e /web | |
parent | cd7eafaf34bcfa1c75e6ad8562330912f9136f2c (diff) |
Add hop count for children (#11311)
Diffstat (limited to 'web')
-rw-r--r-- | web/api/web_api_v1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index c58a86af0f..f0a3ea146c 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -867,8 +867,8 @@ static inline void web_client_api_request_v1_info_mirrored_hosts(BUFFER *wb) { netdata_mutex_lock(&host->receiver_lock); buffer_sprintf( - wb, "\t\t{ \"guid\": \"%s\", \"reachable\": %s, \"claim_id\": ", host->machine_guid, - (host->receiver || host == localhost) ? "true" : "false"); + wb, "\t\t{ \"guid\": \"%s\", \"reachable\": %s, \"hops\": %d, \"claim_id\": ", host->machine_guid, + (host->receiver || host == localhost) ? "true" : "false", host->system_info ? host->system_info->hops : (host == localhost) ? 0 : 1); netdata_mutex_unlock(&host->receiver_lock); rrdhost_aclk_state_lock(host); |