diff -ruN e-smith-qmail-2.2.0.old/root/etc/e-smith/templates/var/qmail/control/concurrencylocal e-smith-qmail-2.2.0/root/etc/e-smith/templates/var/qmail/control/concurrencylocal --- e-smith-qmail-2.2.0.old/root/etc/e-smith/templates/var/qmail/control/concurrencylocal 2006-01-10 23:04:56.000000000 -0800 +++ e-smith-qmail-2.2.0/root/etc/e-smith/templates/var/qmail/control/concurrencylocal 2013-06-29 10:57:34.000000000 -0700 @@ -1 +1 @@ -10 +{ $DB->get('qmail')->prop('ConcurrencyLocal') || "20"; } diff -ruN e-smith-qmail-2.2.0.old/root/etc/e-smith/templates/var/qmail/control/concurrencyremote e-smith-qmail-2.2.0/root/etc/e-smith/templates/var/qmail/control/concurrencyremote --- e-smith-qmail-2.2.0.old/root/etc/e-smith/templates/var/qmail/control/concurrencyremote 2006-01-10 23:04:56.000000000 -0800 +++ e-smith-qmail-2.2.0/root/etc/e-smith/templates/var/qmail/control/concurrencyremote 2013-06-29 10:57:38.000000000 -0700 @@ -1,34 +1 @@ -{ - return $qmail{ConcurrencyRemote} if defined $qmail{ConcurrencyRemote}; - - my $concurrencyRemote = 20; - - open(MEMINFO, "/proc/meminfo") || die "Couldn't read meminfo: $!"; - - my $line; - - while ( $line = ) - { - if ( $line =~ /^MemTotal:\s+(\d+)\s+/ ) - { - my $memTotal = $1; - - if ( $memTotal <= 16384 ) - { - $concurrencyRemote = 2; - } - elsif ( $memTotal <= 32768 ) - { - $concurrencyRemote = 4; - } - else - { - $concurrencyRemote = 20; - } - - last; - } - } - - $concurrencyRemote; -} +{ $DB->get('qmail')->prop('ConcurrencyRemote') || "20"; }