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
44922267
Commit
44922267
authored
Jan 29, 2014
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply VSL_Match on records.
This allows using the -ixIX options to filter which records are counted.
parent
316d15b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
varnishtop.c
bin/varnishtop/varnishtop.c
+4
-2
No files found.
bin/varnishtop/varnishtop.c
View file @
44922267
...
@@ -120,12 +120,14 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
...
@@ -120,12 +120,14 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
unsigned
tag
;
unsigned
tag
;
const
char
*
b
,
*
e
,
*
p
;
const
char
*
b
,
*
e
,
*
p
;
unsigned
len
;
unsigned
len
;
struct
VSL_transaction
*
tr
;
(
void
)
vsl
;
(
void
)
priv
;
(
void
)
priv
;
struct
VSL_transaction
*
tr
;
for
(
tr
=
pt
[
0
];
tr
!=
NULL
;
tr
=
*++
pt
)
{
for
(
tr
=
pt
[
0
];
tr
!=
NULL
;
tr
=
*++
pt
)
{
while
((
1
==
VSL_Next
(
tr
->
c
)))
{
while
((
1
==
VSL_Next
(
tr
->
c
)))
{
if
(
!
VSL_Match
(
vsl
,
tr
->
c
))
continue
;
tag
=
VSL_TAG
(
tr
->
c
->
rec
.
ptr
);
tag
=
VSL_TAG
(
tr
->
c
->
rec
.
ptr
);
b
=
VSL_CDATA
(
tr
->
c
->
rec
.
ptr
);
b
=
VSL_CDATA
(
tr
->
c
->
rec
.
ptr
);
len
=
VSL_LEN
(
tr
->
c
->
rec
.
ptr
);
len
=
VSL_LEN
(
tr
->
c
->
rec
.
ptr
);
...
...
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