From: phk Date: Sat, 16 Sep 2006 15:51:43 +0000 (+0000) Subject: correctly round INT32_MAX down to page boundary X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eafc3fd5d3ae919c3e8f2f9517009be1aecbe0c2;p=varnish correctly round INT32_MAX down to page boundary git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1027 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index 51756111..ac4a8465 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -187,6 +187,7 @@ smf_calcsize(struct smf_sc *sc, const char *size, int newfile) " Specifiy explicit size to override.\n" ); l = INT32_MAX; + l -= (l % bs); } printf("file %s size %ju bytes (%ju fs-blocks, %ju pages)\n",