projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91519a0
)
Reduce tile expiry cutoff time to 28 days
author
Tom Hughes
<tom@compton.nu>
Tue, 14 Jan 2014 09:15:23 +0000
(09:15 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 14 Jan 2014 10:42:27 +0000
(10:42 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb
patch
|
blob
|
history
diff --git
a/cookbooks/tile/templates/default/cleanup-tiles.erb
b/cookbooks/tile/templates/default/cleanup-tiles.erb
index eebcd41a4f15ec8e1e1a2bdc6795c3ad1592d5b7..de696c659b89afd9c34a689755e0472d789a4a5d 100644
(file)
--- a/
cookbooks/tile/templates/default/cleanup-tiles.erb
+++ b/
cookbooks/tile/templates/default/cleanup-tiles.erb
@@
-19,7
+19,7
@@
my $tempfile = tmpnam();
if (df($tiledir)->{per} > 90)
{
- system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+
35
", "-fprintf", $tempfile, "%A@ %p\n");
+ system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+
28
", "-fprintf", $tempfile, "%A@ %p\n");
open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";