From: Stephen Gran Date: Sun, 24 Jun 2012 09:38:52 +0000 (+0100) Subject: sigh, this undefined behavior stinks X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=commitdiff_plain;h=b01236947297a392057234ada5e5aaaf6c946be7 sigh, this undefined behavior stinks Signed-off-by: Stephen Gran --- 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