Simplify loop index where arithmetic isn't needed.
authorMatt Amos <zerebubuth@gmail.com>
Thu, 11 Aug 2016 13:05:39 +0000 (14:05 +0100)
committerMatt Amos <zerebubuth@gmail.com>
Thu, 11 Aug 2016 13:05:39 +0000 (14:05 +0100)
cookbooks/tilecache/templates/default/squid.conf.erb

index 8c0cdc37eae86bd2d733732c22c8cea4faa59e6d..5183093612e9331dc8096c094509c567c9190d6c 100644 (file)
@@ -111,8 +111,8 @@ acl pool_<%= sprintf("%03d", 2*i) %> src <%= 2*i %>.0.0.0/7
 delay_pools 256
 delay_initial_bucket_level 25
 
-<% (0..255).each do |i| %>
-delay_class <%= i+1 %> 3
+<% (1..256).each do |i| %>
+delay_class <%= i %> 3
 <% end %>
 #bit mask
 # xxxxxxx- -------- xxxxxxxx xxxxxxxx