From 16c508ac782cc6957d2190f76e3b537b92e7a2cc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 12 Sep 2015 13:07:07 -0300 Subject: Check if memory_limit is available on templates --- templates/rss.hard.erb | 2 +- templates/rss.soft.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) %> -- cgit v1.2.3