From eafc3fd5d3ae919c3e8f2f9517009be1aecbe0c2 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 16 Sep 2006 15:51:43 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/storage_file.c | 1 + 1 file changed, 1 insertion(+) 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", -- 2.39.5