[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [master] ac96796 Add a 'e' key binding in varnishstat to disable/enable scaling of values
From:       Martin Blix Grydeland <martin () varnish-software ! com>
Date:       2015-01-27 16:17:56
Message-ID: E1YG8pw-0003KR-M6 () project ! varnish-software ! com
[Download RAW message or body]


commit ac9679684578808198329402cc22df99cf4cdbc3
Author: Martin Blix Grydeland <martin@varnish-software.com>
Date:   Mon Jan 19 11:30:02 2015 +0100

    Add a 'e' key binding in varnishstat to disable/enable scaling of values

diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index a623d46..0fbed92 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -125,6 +125,7 @@ static int current = 0;
 static int rebuild = 0;
 static int redraw = 0;
 static int sample = 0;
+static int scale = 1;
 static double t_sample = 0.;
 static double interval = 1.;
 
@@ -869,6 +870,10 @@ handle_keypress(int ch)
 		hide_unseen = 1 - hide_unseen;
 		rebuild = 1;
 		break;
+	case 'e':
+		scale = 1 - scale;
+		rebuild = 1;
+		break;
 	case 'g':
 		current = 0;
 		page_start = 0;
diff --git a/doc/sphinx/reference/varnishstat.rst b/doc/sphinx/reference/varnishstat.rst
index ea62918..036b268 100644
--- a/doc/sphinx/reference/varnishstat.rst
+++ b/doc/sphinx/reference/varnishstat.rst
@@ -124,6 +124,9 @@ The following keys control the interactive display:
 	counters are those that has been zero for the entire runtime
 	of varnishstat. Defaults to hide unseen counters.
 
+<e>
+	Toggle scaling of values.
+
 <g>
 	Go to the top of the counter list.
 

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic