Commit dceb4cf6 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Pål Hermunn Johansen

Make sure that oc->last_lru has sufficient precision

Since the last_lru tracks epoch time, it needs the double precision
floating point type to accurately track the time.

This is simply the test case from 2261dcfd.
parent bc993dec
varnishtest "Test the n_lru_moved counter"
server s1 {
rxreq
txresp
} -start
varnish v1 -arg "-p lru_interval=1" -vcl+backend {
sub vcl_backend_response {
set beresp.do_stream = false;
}
} -start
client c1 {
txreq
rxresp
} -run
varnish v1 -expect MAIN.n_lru_moved == 0
delay 1
client c1 {
txreq
rxresp
txreq
rxresp
} -run
varnish v1 -expect MAIN.n_lru_moved == 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment