[4.1] 99b85e7 Better

Federico G. Schwindt fgsch at lodoss.net
Fri Sep 4 15:54:52 CEST 2015


commit 99b85e7e4ee6139ddfc601246a57ac5f76c25462
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Aug 3 09:53:55 2015 +0100

    Better

diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 46f777e..2763f7b 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -137,13 +137,14 @@ cnt_deliver(struct worker *wrk, struct req *req)
 		http_PrintfHeader(req->resp,
 		    "X-Varnish: %u", VXID(req->vsl->wid));
 
-	/* We base Age calculation upon the last timestamp taken during
-	   client request processing. This gives some inaccuracy, but
-	   since Age is only full second resolution that shouldn't
-	   matter. (Last request timestamp could be a Start timestamp
-	   taken before the object entered into cache leading to negative
-	   age. Truncate to zero in that case).
-	*/
+	/*
+	 * We base Age calculation upon the last timestamp taken during
+	 * client request processing. This gives some inaccuracy, but
+	 * since Age is only full second resolution that shouldn't
+	 * matter. (Last request timestamp could be a Start timestamp
+	 * taken before the object entered into cache leading to negative
+	 * age. Truncate to zero in that case).
+	 */
 	http_PrintfHeader(req->resp, "Age: %.0f",
 	    fmax(0., req->t_prev - req->objcore->exp.t_origin));
 



More information about the varnish-commit mailing list