]> git.openstreetmap.org Git - chef.git/commitdiff
Only warn about an unfinished expiry if we started one
authorTom Hughes <tom@compton.nu>
Tue, 17 Sep 2013 07:31:10 +0000 (08:31 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 17 Sep 2013 07:31:10 +0000 (08:31 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index cd8696ac48e65dcdfdc226009201a5d3e56a07ba..5c914f3bbd8a7281e661bf220f372218554f957d 100644 (file)
@@ -39,10 +39,10 @@ if (df($tiledir)->{per} > 90)
   done:
 
     close(TILES);
   done:
 
     close(TILES);
+
+    warn "Tile expiry finished before threshold reached" if df($tiledir)->{per} > 80;
 }
 
 unlink($tempfile);
 
 }
 
 unlink($tempfile);
 
-warn "Tile expiry finished before threshold reached" if df($tiledir)->{per} > 80;
-
 exit 0;
 exit 0;