Skip to content

Commit

Permalink
explicitly calling to_s on parameters that could potentially be a num…
Browse files Browse the repository at this point in the history
…eric type, to avoid ruby errors
  • Loading branch information
Mike Dorman committed May 21, 2014
1 parent 2f5cf83 commit 2200af3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/memcached_sysconfig.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CACHESIZE="<%= scope.function_memcached_max_memory([@max_memory]) %>"
OPTIONS="<%
result = []
if @verbosity
result << '-' + @verbosity
result << '-' + @verbosity.to_s
end
if @lock_memory
result << '-k'
Expand All @@ -15,10 +15,10 @@ if @listen_ip
result << '-l ' + @listen_ip
end
if @udp_port
result << '-U ' + @udp_port
result << '-U ' + @udp_port.to_s
end
if @item_size
result << '-I ' + @item_size
result << '-I ' + @item_size.to_s
end
result << '-t ' + @processorcount
-%><%= result.join(' ') -%>"

0 comments on commit 2200af3

Please sign in to comment.