[master] 76bed41db varnishtop -d does not exit by itself

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Jul 4 15:15:09 UTC 2018


commit 76bed41dbbe1c976bcab622a502402ac64e9333a
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Jul 4 16:19:15 2018 +0200

    varnishtop -d does not exit by itself
    
    Unless -1 is used too, but -1 already implies -d so it doesn't really
    count.
    
    Fixes #2721

diff --git a/bin/varnishtop/varnishtop_options.h b/bin/varnishtop/varnishtop_options.h
index ebf8912c1..6605d463a 100644
--- a/bin/varnishtop/varnishtop_options.h
+++ b/bin/varnishtop/varnishtop_options.h
@@ -37,6 +37,11 @@
 	    " statistics once and exit. Implies ``-d``."		\
 	)
 
+#define TOP_OPT_d							\
+	VOPT("d", "[-d]", "Process old log entries",			\
+	    "Process log records at the head of the log."		\
+	)
+
 #define TOP_OPT_f							\
 	VOPT("f", "[-f]", "First field only",				\
 	    "Sort and group only on the first field of each log entry."	\
@@ -59,7 +64,7 @@ TOP_OPT_1
 VSL_OPT_b
 VSL_OPT_c
 VSL_OPT_C
-VUT_OPT_d
+TOP_OPT_d
 TOP_OPT_f
 VUT_OPT_g
 VUT_OPT_h


More information about the varnish-commit mailing list