[master] 94f9edb Unit conformance, comparing bytes with kilobytes is not smart.

Poul-Henning Kamp phk at varnish-cache.org
Tue May 24 09:01:00 CEST 2011


commit 94f9edba707fe736ef6a49f1b7546f6516e11a12
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue May 24 06:56:39 2011 +0000

    Unit conformance, comparing bytes with kilobytes is not smart.
    
    Spotted by:	nav

diff --git a/bin/varnishd/stevedore.c b/bin/varnishd/stevedore.c
index 03df098..51f4422 100644
--- a/bin/varnishd/stevedore.c
+++ b/bin/varnishd/stevedore.c
@@ -178,7 +178,7 @@ stv_alloc(const struct sess *sp, size_t size)
 		if (st != NULL)
 			break;
 
-		if (size > params->fetch_chunksize) {
+		if (size > params->fetch_chunksize * 1024LL) {
 			size >>= 1;
 			continue;
 		}



More information about the varnish-commit mailing list