From: Silvio Rhatto Date: Sat, 12 Sep 2015 16:07:07 +0000 (-0300) Subject: Check if memory_limit is available on templates X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=16c508ac782cc6957d2190f76e3b537b92e7a2cc;p=puppet-virtual.git Check if memory_limit is available on templates --- diff --git a/templates/rss.hard.erb b/templates/rss.hard.erb index 31a8030..357dbac 100644 --- a/templates/rss.hard.erb +++ b/templates/rss.hard.erb @@ -1 +1 @@ -<%= memory_limit.to_i * 1_000_000 / 4096 %> +<%= memory_limit.to_i * 1_000_000 / 4096 if defined?(memory_limit) %> diff --git a/templates/rss.soft.erb b/templates/rss.soft.erb index 31a8030..357dbac 100644 --- a/templates/rss.soft.erb +++ b/templates/rss.soft.erb @@ -1 +1 @@ -<%= memory_limit.to_i * 1_000_000 / 4096 %> +<%= memory_limit.to_i * 1_000_000 / 4096 if defined?(memory_limit) %>