[master] bafe805 Add a 'd' duration presentation type to VSM counters

Martin Blix Grydeland martin at varnish-software.com
Tue Jan 27 17:17:56 CET 2015


commit bafe80500827c15d014991187ab1e5fe02ac02bb
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Jan 19 14:07:55 2015 +0100

    Add a 'd' duration presentation type to VSM counters
    
    Mark the two uptime counters as duration

diff --git a/include/tbl/vsc_f_main.h b/include/tbl/vsc_f_main.h
index c40867c..94444d3 100644
--- a/include/tbl/vsc_f_main.h
+++ b/include/tbl/vsc_f_main.h
@@ -35,7 +35,7 @@
  * Globals, not related to traffic
  */
 
-VSC_F(uptime,			uint64_t, 0, 'c', 'i', info,
+VSC_F(uptime,			uint64_t, 0, 'c', 'd', info,
     "Child process uptime",
 	"How long the child process has been running."
 )
diff --git a/include/tbl/vsc_fields.h b/include/tbl/vsc_fields.h
index 1a7dfd8..7b06a8c 100644
--- a/include/tbl/vsc_fields.h
+++ b/include/tbl/vsc_fields.h
@@ -40,6 +40,7 @@
  *    f - Format:	Display format for the field
  *				'b' - Bitmap
  *				'i' - Integer
+ *				'd' - Duration
  *    v - Verbosity:	Counter verbosity level (see vsc_levels.h)
  *    d - Description:	Short description of field (for screen use)
  *    e - Explanation:	Long explanation of field (for doc use)
@@ -64,7 +65,7 @@
 
 #ifdef VSC_DO_MGT
 
-VSC_F(uptime,			uint64_t, 0, 'c', 'i', info,
+VSC_F(uptime,			uint64_t, 0, 'c', 'd', info,
     "Management process uptime",
 	"Uptime in seconds of the management process"
 )



More information about the varnish-commit mailing list