]> arthur.barton.de Git - netdata.git/commitdiff
fixed typo No 2
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 22 Feb 2017 22:27:21 +0000 (00:27 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 22 Feb 2017 22:27:21 +0000 (00:27 +0200)
src/web_client.c

index e36876fd4c7fd6cef0d097606c31fcbd1b8e55b3..904bf7067dcf5007b207b18e766756aa1854e081 100644 (file)
@@ -1749,7 +1749,7 @@ int web_client_stream_request(RRDHOST *host, struct web_client *w, char *url) {
     health_enabled = appconfig_get_boolean_ondemand(&stream_config, key, "health enabled by default", health_enabled);
     health_enabled = appconfig_get_boolean_ondemand(&stream_config, machine_guid, "health enabled", health_enabled);
 
-    if(strcmp(machine_guid, "localhost"))
+    if(!strcmp(machine_guid, "localhost"))
         host = localhost;
     else
         host = rrdhost_find_or_create(hostname, machine_guid, os, update_every, history, mode, health_enabled?1:0);