From: Vincent Bernat Date: Mon, 6 May 2013 19:35:02 +0000 (+0200) Subject: NEWS: add an entry for "show statistics summary" command X-Git-Tag: 0.7.3~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adcb76f83ac90de30e0bbfff236f55f15f6240f2;p=thirdparty%2Flldpd.git NEWS: add an entry for "show statistics summary" command --- diff --git a/NEWS b/NEWS index 2188bd07..d133fc62 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ lldpd (0.7.3) * Features: + DragonFly BSD support. + + Provide global statistics through "show statistics summary" + command (thanks to Roopa Prabhu). * Fixes: + Fix IPv4/IPv6 address discovery in Linux. diff --git a/src/client/display.c b/src/client/display.c index 648fd048..3dc0261f 100644 --- a/src/client/display.c +++ b/src/client/display.c @@ -668,7 +668,7 @@ display_interfaces_stats(lldpctl_conn_t *conn, struct writer *w, } if (summary) { - tag_start(w, "sum", "Sum of stats over all interfaces"); + tag_start(w, "summary", "Summary of stats over all interfaces"); display_stat(w, "tx", "Transmitted", h_tx_cnt); display_stat(w, "rx", "Received", h_rx_cnt); display_stat(w, "rx_discarded_cnt", "Discarded", diff --git a/src/client/show.c b/src/client/show.c index 715dc4ac..21b48c20 100644 --- a/src/client/show.c +++ b/src/client/show.c @@ -59,10 +59,10 @@ cmd_show_interface_stats(struct lldpctl_conn_t *conn, struct writer *w, { log_debug("lldpctl", "show stats data"); if (cmdenv_get(env, "ports")) - log_debug("lldpctl", "*restrict to the following ports: %s", + log_debug("lldpctl", "restrict to the following ports: %s", cmdenv_get(env, "ports")); if (cmdenv_get(env, "summary")) - log_debug("lldpctl", "show sum of stats accross ports ", + log_debug("lldpctl", "show summary of stats accross ports ", cmdenv_get(env, "summary")); display_interfaces_stats(conn, w, env);