Skip to content

Commit

Permalink
squashme: address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Asad Sajjad Ahmed <[email protected]>
  • Loading branch information
asadsa92 committed Nov 8, 2024
1 parent 3e53d5b commit 7b34199
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bin/varnishd/cache/cache_conn_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ PFD_Fd(struct pfd *p)
vtim_dur
PFD_Age(const struct pfd *p)
{
vtim_mono now;
vtim_mono t_mono;

CHECK_OBJ_NOTNULL(p, PFD_MAGIC);
now = VTIM_mono();
assert(now >= p->created);
t_mono = VTIM_mono();
assert(t_mono >= p->created);

return (now - p->created);
return (t_mono - p->created);
}

uint64_t
Expand Down
2 changes: 1 addition & 1 deletion bin/varnishd/cache/cache_conn_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct pfd;

unsigned PFD_State(const struct pfd *);
int *PFD_Fd(struct pfd *);
vtim_real PFD_Age(const struct pfd *);
vtim_dur PFD_Age(const struct pfd *);
uint64_t PFD_Reused(const struct pfd *);
void PFD_LocalName(const struct pfd *, char *, unsigned, char *, unsigned);
void PFD_RemoteName(const struct pfd *, char *, unsigned, char *, unsigned);
Expand Down
6 changes: 3 additions & 3 deletions include/tbl/vsl_tags.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ SLTM(SessClose, 0, "Client connection closed",
SLTM(BackendOpen, 0, "Backend connection opened",
"Logged when a new backend connection is opened.\n\n"
"The format is::\n\n"
"\t%d %s %s %s %s %s %s [ %.6f %ld ]\n"
"\t| | | | | | | | |\n"
"\t| | | | | | | | +- Connection reuses\n"
"\t%d %s %s %s %s %s %s [ %f %ld ]\n"
"\t| | | | | | | | |\n"
"\t| | | | | | | | +--- Connection reuses\n"
"\t| | | | | | | +------ Connection age\n"
"\t| | | | | | +----------- \"connect\" or \"reuse\"\n"
"\t| | | | | +-------------- Local port\n"
Expand Down

0 comments on commit 7b34199

Please sign in to comment.