[master] ac96796 Add a 'e' key binding in varnishstat to disable/enable scaling of values
Martin Blix Grydeland
martin at varnish-software.com
Tue Jan 27 17:17:56 CET 2015
commit ac9679684578808198329402cc22df99cf4cdbc3
Author: Martin Blix Grydeland <martin at 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.
More information about the varnish-commit
mailing list