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
3c5b6ec3
Commit
3c5b6ec3
authored
Jan 16, 2015
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop deprecated 'a' and 'i' counter formats from table definition
parent
26f659f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
varnishstat.c
bin/varnishstat/varnishstat.c
+1
-1
varnishstat_curses.c
bin/varnishstat/varnishstat_curses.c
+0
-4
vsc_fields.h
include/tbl/vsc_fields.h
+0
-2
No files found.
bin/varnishstat/varnishstat.c
View file @
3c5b6ec3
...
...
@@ -180,7 +180,7 @@ do_once_cb(void *priv, const struct VSC_point * const pt)
if
(
i
>=
op
->
pad
)
op
->
pad
=
i
+
1
;
printf
(
"%*.*s"
,
op
->
pad
-
i
,
op
->
pad
-
i
,
""
);
if
(
pt
->
desc
->
flag
==
'
a'
||
pt
->
desc
->
flag
==
'
c'
)
if
(
pt
->
desc
->
flag
==
'c'
)
printf
(
"%12ju %12.2f %s
\n
"
,
(
uintmax_t
)
val
,
val
/
op
->
up
,
pt
->
desc
->
sdesc
);
else
...
...
bin/varnishstat/varnishstat_curses.c
View file @
3c5b6ec3
...
...
@@ -317,10 +317,6 @@ build_pt_list_cb(void *priv, const struct VSC_point *vpt)
pt
->
ptr
=
vpt
->
ptr
;
pt
->
last
=
*
pt
->
ptr
;
pt
->
flag
=
vpt
->
desc
->
flag
;
if
(
pt
->
flag
==
'a'
)
pt
->
flag
=
'c'
;
if
(
pt
->
flag
==
'i'
)
pt
->
flag
=
'g'
;
pt
->
ma_10
.
nmax
=
10
;
pt
->
ma_100
.
nmax
=
100
;
...
...
include/tbl/vsc_fields.h
View file @
3c5b6ec3
...
...
@@ -34,11 +34,9 @@
* t - Type: C-type, uint64_t, unless marked in 'f'
* l - Local: Local counter in worker thread.
* f - Format: Semantics of the value in this field
* 'a' - Accumulator (deprecated, use 'c')
* 'b' - Bitmap
* 'c' - Counter, never decreases.
* 'g' - Gauge, goes up and down
* 'i' - Integer (deprecated, use 'g')
* v - Verbosity: Counter verbosity level (see vsc_levels.h)
* e - Explanation: Short explanation of field (for screen use)
* d - Description: Long explanation of field (for doc use)
...
...
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