]> arthur.barton.de Git - netdata.git/blobdiff - src/ipc.c
localhost is now dynamic
[netdata.git] / src / ipc.c
index b66d65272a917ddb31f5baefc518bdffd2a56967..0d13d1ef935d90e3494108d8671c3edadf451863 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -184,8 +184,8 @@ int do_ipc(int update_every, usec_t dt) {
             return 1;
         }
 
-        arrays_max     = rrdvar_custom_host_variable_create(&localhost, "ipc.semaphores.arrays.max");
-        semaphores_max = rrdvar_custom_host_variable_create(&localhost, "ipc.semaphores.max");
+        arrays_max     = rrdvar_custom_host_variable_create(localhost, "ipc.semaphores.arrays.max");
+        semaphores_max = rrdvar_custom_host_variable_create(localhost, "ipc.semaphores.max");
 
         if(arrays_max)     rrdvar_custom_host_variable_set(arrays_max, limits.semmni);
         if(semaphores_max) rrdvar_custom_host_variable_set(semaphores_max, limits.semmns);