Skip to content

Commit

Permalink
make two identical comparisons the same
Browse files Browse the repository at this point in the history
see 11 lines down
  • Loading branch information
nigoroll committed Dec 5, 2018
1 parent b81bb71 commit 04d9a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/varnishd/cache/cache_hash.c
Expand Up @@ -500,7 +500,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp)
if (exp_oc != NULL) {
exp_oc->refcnt++;
*ocp = exp_oc;
if (EXP_Ttl_grace(req, exp_oc) > req->t_req) {
if (EXP_Ttl_grace(req, exp_oc) >= req->t_req) {
exp_oc->hits++;
Lck_Unlock(&oh->mtx);
return (HSH_GRACE);
Expand Down

0 comments on commit 04d9a40

Please sign in to comment.