tile: clean atime cut-off to 35 days. (28d: 15.8%, 35d: 7.3%, 45d: 0.8% of total...
authorGrant Slater <git@firefishy.com>
Sat, 28 Sep 2013 22:13:07 +0000 (23:13 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 28 Sep 2013 22:13:07 +0000 (23:13 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 8a2c062be8a8a968f9f2c967cfb0fc4db310444f..c4bff4cce3d1f00da308a8287a0d81361fe6908b 100644 (file)
@@ -13,7 +13,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 90)
 {
-    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+28", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+35", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";