]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
NEWS: add an entry for "show statistics summary" command
authorVincent Bernat <bernat@luffy.cx>
Mon, 6 May 2013 19:35:02 +0000 (21:35 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 6 May 2013 19:35:02 +0000 (21:35 +0200)
NEWS
src/client/display.c
src/client/show.c

diff --git a/NEWS b/NEWS
index 2188bd07909a64f188a181c43cc2215fe1ea1bd0..d133fc62c1cbd679223830a12292a758be88f2df 100644 (file)
--- 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.
 
index 648fd04850b83c74985c256d65f5b2b32776df1b..3dc0261f81aea391f8fc05daacb8ec1fa5a5ae9f 100644 (file)
@@ -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",
index 715dc4ac9aa46f4aca283cace6bbea019feba436..21b48c2069802ee8dc3b56007101ff7f82ce3c8e 100644 (file)
@@ -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);