From 55ddc5ad47a565d50f805272a60f238fae51aaf4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 16 Sep 2013 13:59:13 +0100 Subject: [PATCH] Reduce the cutoff time when looking for tiles to expire --- cookbooks/tile/templates/default/cleanup-tiles.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index 73baaffd9..cd8696ac4 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -13,7 +13,7 @@ my $tempfile = tmpnam(); if (df($tiledir)->{per} > 90) { - system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+60", "-fprintf", $tempfile, "%A@ %p\n"); + system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+45", "-fprintf", $tempfile, "%A@ %p\n"); open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!"; -- 2.39.5