Commit 28b48b3c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

In curses mode, always filter in the counters necessary for the

header lines.

Fixes:	#2678
parent 4d3d349f
......@@ -264,6 +264,7 @@ main(int argc, char * const *argv)
int once = 0, xml = 0, json = 0, f_list = 0, curses = 0;
signed char opt;
int i;
int has_f = 0;
struct vsc *vsc;
vut = VUT_InitProg(argc, argv, &vopt_spec);
......@@ -293,6 +294,7 @@ main(int argc, char * const *argv)
break;
case 'f':
AN(VSC_Arg(vsc, opt, optarg));
has_f = 1;
break;
case 'V':
AN(VUT_Arg(vut, opt, optarg));
......@@ -315,8 +317,15 @@ main(int argc, char * const *argv)
if (VSM_Attach(vd, STDERR_FILENO))
VUT_Error(vut, 1, "%s", VSM_Error(vd));
if (curses)
if (curses) {
if (has_f) {
AZ(VSC_Arg(vsc, 'f', "MGT.uptime"));
AZ(VSC_Arg(vsc, 'f', "MAIN.uptime"));
AZ(VSC_Arg(vsc, 'f', "MAIN.cache_hit"));
AZ(VSC_Arg(vsc, 'f', "MAIN.cache_miss"));
}
do_curses(vd, vsc, 1.0);
}
else if (xml)
do_xml(vd, vsc);
else if (json)
......
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