From 7409f2b7f934507a8d0aa1c1f77ec5ab37a21840 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Tue, 21 Sep 2021 13:30:01 -0700 Subject: [PATCH] netconsd: fix up some wrong arguments Summary: SSIA Reviewed By: alastor-erinyes Differential Revision: D31092062 fbshipit-source-id: dbd29268b4558abba9f8a934e9c356a23851478d --- README.md | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de11184..f23bc5d 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ make invocation. All the above targets should build with both clang and gcc. ### Setting up the server By default, netconsd will use 1 listener and 2 worker threads, and listen on -port 1514 for messages. You can use "-l", "-w", and "-p" respectively to change +port 1514 for messages. You can use "-l", "-w", and "-u" respectively to change the defaults. There's no universal wisdom about how many threads to use: just experiment with diff --git a/main.c b/main.c index c8c5179..f817cc1 100644 --- a/main.c +++ b/main.c @@ -70,7 +70,7 @@ static void parse_arguments(int argc, char **argv, struct netconsd_params *p) goto done; case 'h': printf("Usage: %s [-w workers] [-l listeners] " - "[-b mmsg_batch] [-p udp_listen_addr] [-u udp_listen_port] " + "[-b mmsg_batch] [-a udp_listen_addr] [-u udp_listen_port] " "[-g '${interval}/${age}'] [output module path] " "[another output module path...]\n", argv[0]); exit(0);