fixed typo No 2
Costa Tsaousis (ktsaou) committed
Feb 23, 2017 at 00:27 UTC
2d2b8f10167902cee0b0fc1f328662b15e1c1c3d
1 file changed
+1
-1
src/web_client.c
+1
-1
@@ -1749,7 +1749,7 @@ int web_client_stream_request(RRDHOST *host, struct web_client *w, char *url) {
1749
health_enabled = appconfig_get_boolean_ondemand(&stream_config, key, "health enabled by default", health_enabled);
1750
health_enabled = appconfig_get_boolean_ondemand(&stream_config, machine_guid, "health enabled", health_enabled);
1751
1752
- if(strcmp(machine_guid, "localhost"))
1752
+ if(!strcmp(machine_guid, "localhost"))
1753
host = localhost;
1754
else
1755
host = rrdhost_find_or_create(hostname, machine_guid, os, update_every, history, mode, health_enabled?1:0);