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
0fe58fb3
Commit
0fe58fb3
authored
Aug 02, 2016
by
Arianna Aondio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remote variables not necessary to calculate the hit-rate
parent
e91dc411
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
varnishstat_curses.c
bin/varnishstat/varnishstat_curses.c
+2
-8
No files found.
bin/varnishstat/varnishstat_curses.c
View file @
0fe58fb3
...
...
@@ -95,7 +95,6 @@ struct pt {
};
struct
hitrate
{
double
lt
;
uint64_t
lhit
,
lmiss
;
struct
ma
hr_10
;
struct
ma
hr_100
;
...
...
@@ -411,21 +410,16 @@ sample_points(void)
static
void
sample_hitrate
(
void
)
{
double
tv
,
dt
;
double
hr
,
mr
,
ratio
;
uint64_t
hit
,
miss
;
if
(
VSC_C_main
==
NULL
)
return
;
tv
=
VTIM_mono
();
dt
=
tv
-
hitrate
.
lt
;
hitrate
.
lt
=
tv
;
hit
=
VSC_C_main
->
cache_hit
;
miss
=
VSC_C_main
->
cache_miss
;
hr
=
(
hit
-
hitrate
.
lhit
)
/
d
t
;
mr
=
(
miss
-
hitrate
.
lmiss
)
/
dt
;
hr
=
hit
-
hitrate
.
lhi
t
;
mr
=
miss
-
hitrate
.
lmiss
;
hitrate
.
lhit
=
hit
;
hitrate
.
lmiss
=
miss
;
...
...
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