summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/publisher.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/publisher.c b/src/publisher.c
index d8cd3a3..f826f3b 100644
--- a/src/publisher.c
+++ b/src/publisher.c
@@ -29,6 +29,12 @@ int main (int argc, char *argv [])
__port=atoi(argv[4]);
__key=argv[5];
+ //----- Sanity checks
+ if(__loginterval<MIN_INTERVAL){
+ printf("Log interval is too small (min=%ds)\n",MIN_INTERVAL);
+ exit(2);
+ }
+
//----- Prepare our context and publisher
void *context = zmq_ctx_new ();
void *publisher = zmq_socket (context, ZMQ_PUB);