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
d282ee92
Commit
d282ee92
authored
May 22, 2018
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some varnishtop -f coverage
parent
0efdb5c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
u00004.vtc
bin/varnishtest/tests/u00004.vtc
+10
-0
varnishtop_options.h
bin/varnishtop/varnishtop_options.h
+3
-1
No files found.
bin/varnishtest/tests/u00004.vtc
View file @
d282ee92
...
@@ -15,6 +15,16 @@ client c1 {
...
@@ -15,6 +15,16 @@ client c1 {
shell -expect "fetch" "varnishtop -n ${v1_name} -1"
shell -expect "fetch" "varnishtop -n ${v1_name} -1"
shell -expect "fetch" "varnishtop -n ${v1_name} -d"
shell -expect "fetch" "varnishtop -n ${v1_name} -d"
# without -f
shell -match "1\\.00 RespHeader Date: [^\\n]+\\n" {
varnishtop -n ${v1_name} -1 -i RespHeader
}
# with -f
shell -match "1\\.00 RespHeader Date\\n" {
varnishtop -n ${v1_name} -1 -f -i RespHeader
}
shell -match "Usage: .*varnishtop <options>" \
shell -match "Usage: .*varnishtop <options>" \
"varnishtop -h"
"varnishtop -h"
shell -expect "Copyright (c) 2006 Verdens Gang AS" \
shell -expect "Copyright (c) 2006 Verdens Gang AS" \
...
...
bin/varnishtop/varnishtop_options.h
View file @
d282ee92
...
@@ -40,7 +40,9 @@
...
@@ -40,7 +40,9 @@
#define TOP_OPT_f \
#define TOP_OPT_f \
VOPT("f", "[-f]", "First field only", \
VOPT("f", "[-f]", "First field only", \
"Sort and group only on the first field of each log entry." \
"Sort and group only on the first field of each log entry." \
" This is useful when displaying e.g. stataddr entries," \
" For log entries in the form ``prefix: value`` it is the" \
" prefix without the colon that is sorted and grouped." \
" This is useful when displaying e.g. ReqStart entries," \
" where the first field is the client IP address." \
" where the first field is the client IP address." \
)
)
...
...
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