From 644bd0f6124ac1f4058a81c8745569bfcd86dcb8 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 15 Jul 2023 18:41:58 +0200 Subject: Minor changes --- src/publisher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/publisher.c') diff --git a/src/publisher.c b/src/publisher.c index c30b52a..0b1ac53 100644 --- a/src/publisher.c +++ b/src/publisher.c @@ -37,7 +37,7 @@ int main (int argc, char *argv []) void *publisher = zmq_socket (context, ZMQ_PUB); char bindto[30]; sprintf(bindto,"tcp://%s:%d",__interface,__port); - int rc = zmq_bind (publisher, bindto); + int rc = zmq_connect (publisher, bindto); if(rc!=0){ printf("Failed to bind zmq on %s\n",bindto); exit(1); @@ -65,7 +65,7 @@ int main (int argc, char *argv []) // Send current one if(FILE_EXISTS(logfile)){ publish(publisher,logfile,client,interval); - remove(logfile); + //remove(logfile); } } } -- cgit v1.2.3