From b01236947297a392057234ada5e5aaaf6c946be7 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 24 Jun 2012 10:38:52 +0100 Subject: [PATCH] sigh, this undefined behavior stinks Signed-off-by: Stephen Gran --- modules/exim/templates/eximconf.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index d43cb8698..1be6b7e14 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -194,8 +194,13 @@ queue_only_load = 35 smtp_load_reserve = 20 <%- else -%> queue_run_max = 5 +<%- if scope.lookupvar('::processorcount').to_s != 'undefined' -%> deliver_queue_load_max = <%= [scope.lookupvar('::processorcount').to_i,2].max * 5 %> queue_only_load = <%= [scope.lookupvar('::processorcount').to_i,2].max * 4 %> +<%- else -%> +deliver_queue_load_max = 10 +queue_only_load = 8 +<%- end -%> <%- end -%> queue_list_requires_admin = false -- 2.20.1