Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
28b48b3c
Commit
28b48b3c
authored
Aug 13, 2018
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
Aug 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In curses mode, always filter in the counters necessary for the
header lines. Fixes: #2678
parent
4d3d349f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
varnishstat.c
bin/varnishstat/varnishstat.c
+10
-1
No files found.
bin/varnishstat/varnishstat.c
View file @
28b48b3c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment