projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a0892
)
Find more candidates for tile expiry
author
Tom Hughes
<tom@compton.nu>
Wed, 18 Mar 2015 08:33:17 +0000
(08:33 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 18 Mar 2015 08:33:17 +0000
(08:33 +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 c92e538784ac0552fa7926daa35326ba4e4329e6..b0a6a7419775b11cad211a47849741f4a3cb13f4 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", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+1
4
", "-fprintf", $tempfile, "%A@ %p\n");
+ system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+1
0
", "-fprintf", $tempfile, "%A@ %p\n");
open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";