diff options
Diffstat (limited to 'exporting/json/json.c')
-rw-r--r-- | exporting/json/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exporting/json/json.c b/exporting/json/json.c index d916fe7741..b7de2fd43e 100644 --- a/exporting/json/json.c +++ b/exporting/json/json.c @@ -186,7 +186,7 @@ int format_dimension_collected_json_plaintext(struct instance *instance, RRDDIM "\"timestamp\":%llu}", instance->config.prefix, - (host == localhost) ? instance->config.hostname : rrdhost_hostname(host), + (host == rrdb.localhost) ? instance->config.hostname : rrdhost_hostname(host), tags_pre, tags, tags_post, @@ -270,7 +270,7 @@ int format_dimension_stored_json_plaintext(struct instance *instance, RRDDIM *rd "\"timestamp\": %llu}", instance->config.prefix, - (host == localhost) ? instance->config.hostname : rrdhost_hostname(host), + (host == rrdb.localhost) ? instance->config.hostname : rrdhost_hostname(host), tags_pre, tags, tags_post, |