From 3da3f2d77d452db7a79df46a82af096e3b7f37dc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 4 Aug 2016 21:13:45 +0100 Subject: [PATCH] Adjust tile expiry thresholds --- 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 5766b84cb..eb108e95e 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -20,7 +20,7 @@ my $tempfile = tmpnam(); if (df($tiledir)->{per} > 88) { - system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+5", "-fprintf", $tempfile, "%A@ %p\n"); + system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+3", "-fprintf", $tempfile, "%A@ %p\n"); open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!"; -- 2.39.5