Commit ac967968 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

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

parent 9863f3e7
......@@ -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;
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment