projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a6d1d2f
)
Adjust tile expiry thresholds
author
Tom Hughes
<tom@compton.nu>
Thu, 4 Aug 2016 20:13:45 +0000
(21:13 +0100)
committer
Tom Hughes
<tom@compton.nu>
Thu, 4 Aug 2016 20:13:45 +0000
(21:13 +0100)
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 5766b84cb3c43ecf823fbd5bbc55623eba3ca110..eb108e95e7d0c13f25034c02d1bc4c0c535a30e4 100644
(file)
--- 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: $!";