Skip to content

Commit

Permalink
fix #1 - eq
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Lvov committed Jul 19, 2016
1 parent 66323a7 commit ce26f11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tempesta_fw/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,10 @@ tfw_cache_resp_is_stale(TfwHttpResp *resp)
bool r = false;



r = (tfw_cache_calc_lifetime(resp) >= jiffies);
TFW_DBG("stale:lifetime:%lu\n", tfw_cache_calc_lifetime(resp));
TFW_DBG("stale:jiff:%lu\n", jiffies);
r = (tfw_cache_calc_lifetime(resp) < jiffies);
TFW_DBG("stale:is_stale:r:%d\n", r);
return r;
}
/*
Expand Down

0 comments on commit ce26f11

Please sign in to comment.