diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-08-09 11:09:39 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-08-09 11:09:39 +0200 |
commit | 762e6d36bf502cc6445814064fb46f6a8f069c82 (patch) | |
tree | cb73a052385f59880e9d6717e8fca6f05f96ac45 /examples/c-collectd | |
parent | 930aaf92760ea8e350c65af3b71ee34cd3581fa9 (diff) |
Some small fixes.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/c-collectd')
-rw-r--r-- | examples/c-collectd/c-collectd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c-collectd/c-collectd.c b/examples/c-collectd/c-collectd.c index 9f230495a..7d7d65244 100644 --- a/examples/c-collectd/c-collectd.c +++ b/examples/c-collectd/c-collectd.c @@ -213,7 +213,7 @@ static struct nDPIsrvd_ull flow_risk_count[NDPI_MAX_RISK - 1 /* NDPI_NO_RISK */]; nDPIsrvd_ull flow_risk_unknown_count; - } gauges[2]; + } gauges[2]; /* values after InfluxDB push: gauges[0] -= gauges[1], gauges[1] is zero'd afterwards */ } collectd_statistics = {}; struct global_map @@ -421,7 +421,7 @@ static int parse_options(int argc, char ** argv, struct nDPIsrvd_socket * const static char const usage[] = "Usage: %s " - "[-l] [-s host] [-c hostname] [-n collectd-instance-name] [-i interval] [-q]\n\n" + "[-l] [-s host] [-c hostname] [-n collectd-instance-name] [-i interval]\n\n" "\t-l\tLog to console instead of syslog.\n" "\t-s\tDestination where nDPIsrvd is listening on.\n" "\t-c\tCollectd hostname.\n" @@ -430,7 +430,7 @@ static int parse_options(int argc, char ** argv, struct nDPIsrvd_socket * const "\t \tDefaults to: " DEFAULT_COLLECTD_EXEC_INST "\n" "\t-i\tInterval between print statistics to stdout.\n" - "\t \tThis value defaults to the environment variable COLLECTD_INTERVAL.\n"; + "\t \tThis value defaults to the environment variable COLLECTD_INTERVAL.\n\n"; while ((opt = getopt(argc, argv, "hls:c:n:i:")) != -1) { |